From b4de0581f0d553c2b392ea1e10dcbf0d5aa4d79e Mon Sep 17 00:00:00 2001 From: Carterpersall Date: Sat, 23 Apr 2022 12:33:15 -0500 Subject: [PATCH 1/2] Add changes in #218 win10debloat.ps1: - Closes #218 - Adds check if OS is Windows 11, then changes the default right-click menu to the detailed view. - Enables GPU Hardware Acceleration - Added 'Disable-Hardware-Acceleration.reg' and 'Win11-Small-Taskbar.reg' --- .../Disable-Hardware-Acceleration.reg | 9 ++++++++ Individual Scripts/Win11-Small-Taskbar.reg | 5 ++++ win10debloat.ps1 | 23 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 Individual Scripts/Disable-Hardware-Acceleration.reg create mode 100644 Individual Scripts/Win11-Small-Taskbar.reg diff --git a/Individual Scripts/Disable-Hardware-Acceleration.reg b/Individual Scripts/Disable-Hardware-Acceleration.reg new file mode 100644 index 00000000..b2eb36b3 --- /dev/null +++ b/Individual Scripts/Disable-Hardware-Acceleration.reg @@ -0,0 +1,9 @@ +Windows Registry Editor Version 5.00 + +;Disables Hardware Acceleration +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers] +"HwSchMode"=dword:00000001 + +;UNDO +;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers] +;"HwSchMode"=dword:00000002 \ No newline at end of file diff --git a/Individual Scripts/Win11-Small-Taskbar.reg b/Individual Scripts/Win11-Small-Taskbar.reg new file mode 100644 index 00000000..ef0b68d3 --- /dev/null +++ b/Individual Scripts/Win11-Small-Taskbar.reg @@ -0,0 +1,5 @@ +Windows Registry Editor Version 5.00 + +;Restart Explorer After Applying +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] +"TaskbarSi"=dword:00000000 \ No newline at end of file diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 741c1fc3..3546e981 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1005,6 +1005,15 @@ $essentialtweaks.Add_Click({ Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 0 Write-Host "Hide tray icons..." Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 1 + + if((Get-ComputerInfo).OSName.Substring(0,20) -eq 'Microsoft Windows 11'){ + Write-Host "Enabling Old Right Click Menu..." + if(!(Test-Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32")){ + New-Item -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" | Out-Null + } + Set-Item -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" + } + Write-Host "Enabling NumLock after startup..." If (!(Test-Path "HKU:")) { New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null @@ -1023,6 +1032,12 @@ $essentialtweaks.Add_Click({ Write-Host "Hiding 3D Objects icon from This PC..." Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue + Write-Host "Enabling Hardware Acceleration..." + if(!(Test-Path "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers")){ + New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" | Out-Null + } + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" -Name "HwSchMode" -Type DWord -Value 2 + # reuducing ram via regedit Write-Host "Using regedit to improve RAM performace" @@ -1288,6 +1303,14 @@ $essentialundo.Add_Click({ Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Recurse -ErrorAction SilentlyContinue } Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Name "EnthusiastMode" -Type DWord -Value 0 + + if((Get-ComputerInfo).OSName.Substring(0,20) -eq 'Microsoft Windows 11'){ + Write-Host "Enabling New Right Click Menu..." + if(Test-Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32"){ + Remove-Item -Path "HKCU:\SOFTWARE\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Recurse -Force | Out-Null + } + } + Write-Host "Showing Task View button..." Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 1 Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 1 From 29b269ab643b76b142d6347b1feaecb0777975f1 Mon Sep 17 00:00:00 2001 From: Carterpersall Date: Sat, 23 Apr 2022 13:04:27 -0500 Subject: [PATCH 2/2] Move Reg Files into folder --- .../{ => Registry Tweaks}/Disable-Hardware-Acceleration.reg | 0 Individual Scripts/{ => Registry Tweaks}/Win11-Small-Taskbar.reg | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename Individual Scripts/{ => Registry Tweaks}/Disable-Hardware-Acceleration.reg (100%) rename Individual Scripts/{ => Registry Tweaks}/Win11-Small-Taskbar.reg (100%) diff --git a/Individual Scripts/Disable-Hardware-Acceleration.reg b/Individual Scripts/Registry Tweaks/Disable-Hardware-Acceleration.reg similarity index 100% rename from Individual Scripts/Disable-Hardware-Acceleration.reg rename to Individual Scripts/Registry Tweaks/Disable-Hardware-Acceleration.reg diff --git a/Individual Scripts/Win11-Small-Taskbar.reg b/Individual Scripts/Registry Tweaks/Win11-Small-Taskbar.reg similarity index 100% rename from Individual Scripts/Win11-Small-Taskbar.reg rename to Individual Scripts/Registry Tweaks/Win11-Small-Taskbar.reg