• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Windows 11 Tweaks for GPU Benchmark

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
28,250 (3.72/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
just copy the whole code
OP is designed so that you can select the changes you want to apply and paste them line by line. It's not designed to be pasted blindly
 
Joined
Aug 15, 2016
Messages
486 (0.16/day)
Processor Intel i7 4770k
Motherboard ASUS Sabertooth Z87
Cooling BeQuiet! Shadow Rock 3
Memory Patriot Viper 3 RedD 16 GB @ 1866 MHz
Video Card(s) XFX RX 480 GTR 8GB
Storage 1x SSD Samsung EVO 250 GB 1x HDD Seagate Barracuda 3 TB 1x HDD Seagate Barracuda 4 TB
Display(s) AOC Q27G2U QHD, Dell S2415H FHD
Case Cooler Master HAF XM
Audio Device(s) Magnat LZR 980, Razer BlackShark V2, Altec Lansing 251
Power Supply Corsair AX860
Mouse Razer DeathAdder V2
Keyboard Razer Huntsman Tournament Edition
Software Windows 10 Pro x64
OP is designed so that you can select the changes you want to apply and paste them line by line. It's not designed to be pasted blindly
Oh I see that now, but a menu with submenus for each option would be nice. I could design such a menu with the functionality of seeing the commands you already ran, or such that should not be ran again, or a state of some option (either enabled/disabled). If you would want that of course.
 
Joined
Aug 15, 2016
Messages
486 (0.16/day)
Processor Intel i7 4770k
Motherboard ASUS Sabertooth Z87
Cooling BeQuiet! Shadow Rock 3
Memory Patriot Viper 3 RedD 16 GB @ 1866 MHz
Video Card(s) XFX RX 480 GTR 8GB
Storage 1x SSD Samsung EVO 250 GB 1x HDD Seagate Barracuda 3 TB 1x HDD Seagate Barracuda 4 TB
Display(s) AOC Q27G2U QHD, Dell S2415H FHD
Case Cooler Master HAF XM
Audio Device(s) Magnat LZR 980, Razer BlackShark V2, Altec Lansing 251
Power Supply Corsair AX860
Mouse Razer DeathAdder V2
Keyboard Razer Huntsman Tournament Edition
Software Windows 10 Pro x64
The commands are designed to be idempotent
Sure, but how does one remember after some time which features they have enabled/disabled, or what the default value was. Imagine if you had to troubleshoot a Windows related issue that may be related to some of the actions completed in the script list.
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
28,250 (3.72/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
First post updated to improve disabling of MS Defender. While the service can't be stopped, it should now consume only 1.3 MB of memory instead of ~100 MB.

To apply you can just paste the Defender section into an admin cmd on your existing system

@Steamroller
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
28,250 (3.72/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Oh, think I know what you mean. I'm talking about something different. Involves an emergency boot disk of some type and modifying files, in a reversible way, by hand.
Same thing as safe mode then
 
Joined
Feb 20, 2020
Messages
9,340 (5.11/day)
Location
Louisiana
System Name Ghetto Rigs z490|x99|Acer 17 Nitro 7840hs/ 5600c40-2x16/ 4060/ 1tb acer stock m.2/ 4tb sn850x
Processor 10900k w/Optimus Foundation | 5930k w/Black Noctua D15
Motherboard z490 Maximus XII Apex | x99 Sabertooth
Cooling oCool D5 res-combo/280 GTX/ Optimus Foundation/ gpu water block | Blk D15
Memory Trident-Z Royal 4000c16 2x16gb | Trident-Z 3200c14 4x8gb
Video Card(s) Titan Xp-water | evga 980ti gaming-w/ air
Storage 970evo+500gb & sn850x 4tb | 860 pro 256gb | Acer m.2 1tb/ sn850x 4tb| Many2.5" sata's ssd 3.5hdd's
Display(s) 1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
Case D450 | Cherry Entertainment center on Test bench
Audio Device(s) Built in Realtek x2 with 2-Insignia 2.0 sound bars & 1-LG sound bar
Power Supply EVGA 1000P2 with APC AX1500 | 850P2 with CyberPower-GX1325U
Mouse Redragon 901 Perdition x3
Keyboard G710+x3
Software Win-7 pro x3 and win-10 & 11pro x3
Benchmark Scores Are in the benchmark section
Hi,
Maybe this one will work better lol
Just calling it a safer 20 year pause nuke mode hehe
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
28,250 (3.72/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
Saved 22H2 version, 24H2 in first post

  • Install without Internet
  • When it prompts you to go online, press Shift+F10 and type "OOBE\BYPASSNRO" (that's an o not a zero at the end). After the automatic reboot you can install without network
  • Install on systems without TPM, UEFI or other requirements: https://www.techpowerup.com/287584/windows-11-tpm-requirement-bypass-it-in-5-minutes
  • Name the user "TPU" (this specific user will be deleted at the end of the scripts and you'll be using "Administrator")
  • Install VGA driver, from USB, still without network, so Windows Update won't install a graphics driver automatically. Protip: use NVCleanstall
  • Run Windows Update, update everything
  • If you don't want drivers with Windows Update, first start "Edit Group Policy" -> Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update -> Manage updates offered from Windows Update -> Do not include drivers with Windows Updates
  • If you want Windows Update to recheck available packages: usoclient startinteractivescan
  • No need to update Windows Store apps
  • Disable Defender "Tamper protection" via Settings App
  • To load this page from your new install, without the Edge first-launch shenanigans, right click the Edge icon in task bar and select "Private" browsing, then Google for "Windows 11 Tweaks GPU"
  • Run the below in admin-rights cmd shell.

Code:
rem Turn off Windows Startup Recovery Screen
bcdedit /set {current} bootstatuspolicy ignoreallfailures
bcdedit /set {default} recoveryenabled no

rem Create new pagefile. (2nd line indented because wmic will eat a character when pasting)
wmic pagefileset delete
  wmic pagefileset create name=C:\pagefile.sys
  wmic pagefileset set InitialSize=16384,MaximumSize=16384

rem Enable Administrator account
net user Administrator /active:yes

rem Set Timezone
tzutil /s "W. Europe Standard Time"

rem Make sure time and date are correct
w32tm /resync /rediscover

rem Disable Error Reporting
reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f

rem Disable automatic TCG/Opal disk locking on supported SSD drives with PSID
reg add HKLM\Software\Policies\Microsoft\Windows\EnhancedStorageDevices /v TCGSecurityActivationDisabled /t REG_DWORD /d 1 /f

rem Control Panel shows Large Icons
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v ForceClassicControlPanel /t REG_DWORD /d 1 /f

rem Disable UAC
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop /t REG_DWORD /d 0 /f

rem Disable discovery of LAN devices like printers
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\NcdAutoSetup\Private /f /v AutoSetup /t REG_DWORD /d 0

rem Delete all printers discovered so far
powershell "Get-WMIObject Win32_Printer | where{$_.Network -eq 'true'} | foreach{$_.delete()}"

rem Set Ethernet connection to private
powershell Set-NetConnectionProfile -InterfaceAlias Ethernet* -NetworkCategory private

rem Set all "unknown network"s to private by default (such adapters are created by VMWare and VirtualBox for their networking, we don't want the Firewall popup)
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\010103000F0000F0010000000F0000F0C967A3643C3AD745950DA7859209176EF5B87C875FA20DF21951640E807D7C24" /v Category /t REG_DWORD /d 1 /f

rem Disable Warnings due to Firewall / Defender being disabled
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance /v Enabled /t REG_DWORD /d 0 /f
reg add "HKLM\Software\Microsoft\Windows Defender Security Center\Notifications" /v DisableNotifications /t REG_DWORD /d 1 /f

rem Disable Windows Firewall for private network
netsh advfirewall set private state off

rem Workaround for bug that shows Firewall "application blocked" messages, despite Firewall being disabled for private network
netsh firewall set notifications mode=disable profile=standard

rem Disable Windows Defender. For this to work you have to manually disable "Tamper protection"
powershell "if ((Get-ItemProperty -Path 'HKLM:SOFTWARE\Microsoft\Windows Defender\Features').TamperProtection -eq 4) { exit 0; } ; Write-Output 'Windows Defender can not be disabled, Tamper Protection is still active' '' 'Disable Tamper Protection manually, then press OK' | msg /w *"
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v DisableAntivirus /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v SpyNetReporting /t REG_DWORD /d 0 /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender" /v DisableRoutinelyTakingAction /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d "Off" /f
reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v SecurityHealth /f

rem Remove Windows Defender Scheduled Tasks
for /f "delims=" %f in ('dir /b "%WINDIR%\System32\Tasks\Microsoft\Windows\Windows Defender"') do schtasks /delete /f /tn "Microsoft\Windows\Windows Defender\%f"

rem Disable "Consumer Features" (aka downloading apps from the internet automatically)
reg add HKLM\Software\Policies\Microsoft\Windows\CloudContent /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f

rem Disable Lock Screen
reg add HKLM\Software\Policies\Microsoft\Windows\Personalization /v NoLockScreen /t REG_DWORD /d 1 /f

rem Remove Logon Wallpaper
reg add HKLM\Software\Policies\Microsoft\Windows\System /v DisableLogonBackgroundImage /t REG_DWORD /d 1 /f

rem Remove Meet Now icon
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v HideSCAMeetNow /t REG_DWORD /d 1 /f

rem Disable One Drive
reg add HKLM\Software\Policies\Microsoft\Windows\OneDrive /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f
start /wait %SystemRoot%\System32\OneDriveSetup.exe /uninstall
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S
reg delete "HKEY_USERS\S-1-5-19\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f
reg delete "HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f
reg load HKLM\DEFAULT c:\users\default\ntuser.dat
reg delete HKLM\DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run /v OneDriveSetup /f
reg unload HKLM\DEFAULT

rem Remove Home and Windows Gallery from Explorer
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace_36354489\{f874310e-b6b7-47dc-bc84-b9e6b38f5903} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace_41040327\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c} /f
rem These seem to exist without the number suffix on some installations
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903} /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c} /f

rem Disable Hibernate
powercfg -h off

rem Turn off sleep mode
powercfg.exe -x -standby-timeout-ac 0

rem Set 4 hours screen blank timeout
powercfg.exe -x -monitor-timeout-ac 240

rem Disable System Restore and delete restore points
powershell disable-computerrestore c:
vssadmin delete shadows /all /quiet

rem Disable reboot on Bluescreen, and no dump
reg add HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /v CrashDumpEnabled /t REG_DWORD /d 0 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /v LogEvent /t REG_DWORD /d 0 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /v SendAlert /t REG_DWORD /d 0 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\CrashControl /v AutoReboot /t REG_DWORD /d 0 /f

rem Don't allow Remote Assistance
reg add "HKLM\System\CurrentControlSet\Control\Remote Assistance" /v fAllowToGetHelp /t REG_DWORD /d 0 /f

rem Enable Remote Desktop
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

rem Allow Remote Desktop without password
reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f

rem Disable Edge Browser preload on startup. We'll never use it anyway, saves memory and startup time
reg add HKLM\Software\Policies\Microsoft\MicrosoftEdge\Main /v AllowPrelaunch /t REG_DWORD /d 0 /f
reg add HKLM\Software\Policies\Microsoft\Edge /v StartupBoostEnabled /t REG_DWORD /d 0 /f
reg add HKLM\Software\Policies\Microsoft\Edge /v BackgroundModeEnabled /t REG_DWORD /d 0 /f

rem Disable Edge Browser (Chromium) first run experience
reg add HKLM\Software\Policies\Microsoft\Edge /v HideFirstRunExperience /t REG_DWORD /d 1 /f

rem Block Edge from recreating the desktop icon on every update
reg add HKLM\Software\Policies\Microsoft\EdgeUpdate /v CreateDesktopShortcutDefault /t REG_DWORD /d 0 /f
reg add HKLM\Software\Policies\Microsoft\EdgeUpdate /v RemoveDesktopShortcutDefault /t REG_DWORD /d 1 /f

rem Disable Look for App in Store prompt when opening unknown file type
reg add HKLM\Software\Policies\Microsoft\Windows\Explorer /v NoUseStoreOpenWith /t REG_DWORD /d 1 /f

rem Disable Windows Program Compatibility Assistant
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat /v DisablePCA /t REG_DWORD /d 1 /f

rem Disable Inventory collecting data and sending the info to Microsoft
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat /v DisableInventory /t REG_DWORD /d 1 /f

rem Disable Application Telemetry
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat /v AITEnable /t REG_DWORD /d 0 /f

rem Disable Shared Experiences
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System /v EnableCdp /t REG_DWORD /d 0 /f

rem Disable Widgets
reg add HKLM\SOFTWARE\Policies\Microsoft\Dsh /v AllowNewsAndInterests /t REG_DWORD /d 0 /f

rem Remove "Chat" from Taskbar and block automatic Teams installation
rem We need to take ownership of the key first
PowerShell "(New-Object System.Net.WebClient).DownloadFile('https://www.techpowerup.com/wizzard/SetACL.exe', '%TEMP%\SetACL.exe');
%TEMP%\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" -ot reg -actn setowner -ownr "n:Everyone"
%TEMP%\SetACL.exe -on "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" -ot reg -actn ace -ace "n:Everyone;p:full"
del %TEMP%\SetACL.exe

reg add "HKLM\Software\Policies\Microsoft\Windows\Windows Chat" /f /v ChatIcon /t REG_DWORD /d 3
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Communications /v ConfigureChatAutoInstall /t REG_DWORD /d 0 /f
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarMn /t REG_DWORD /d 0

rem Remove useless Windows components
dism /online /norestart /disable-feature /featurename:Printing-PrintToPDFServices-Features
dism /online /norestart /disable-feature /featurename:Printing-XPSServices-Features
dism /online /norestart /disable-feature /featurename:WorkFolders-Client
dism /online /norestart /disable-feature /featurename:Printing-Foundation-Features
dism /online /norestart /disable-feature /featurename:Printing-Foundation-InternetPrinting-Client
dism /online /norestart /disable-feature /featurename:MSRDC-Infrastructure
dism /online /norestart /disable-feature /featurename:SmbDirect
dism /online /norestart /disable-feature /featurename:MediaPlayback
dism /online /norestart /disable-feature /featurename:WCF-TCP-PortSharing45
dism /online /norestart /disable-feature /featurename:WCF-Services45
dism /online /norestart /disable-feature /featurename:WindowsMediaPlayer

rem Install .NET 3.5 Framework, some older apps and games need this, and you can't install it on demand once Windows Update is disabled
dism /online /norestart /enable-feature /featurename:NetFx3 /all

rem Remove useless optional features
dism /online /norestart /Remove-Capability /CapabilityName:App.StepsRecorder~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:App.Support.QuickAssist~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:Browser.InternetExplorer~~~~0.0.11.0
dism /online /norestart /Remove-Capability /CapabilityName:Hello.Face.20134~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:Language.Handwriting~~~en-US~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:Language.Speech~~~en-US~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:Language.TextToSpeech~~~en-US~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:MathRecognizer~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:Media.WindowsMediaPlayer~~~~0.0.12.0
dism /online /norestart /Remove-Capability /CapabilityName:Microsoft.Windows.WordPad~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:OneCoreUAP.OneSync~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:OpenSSH.Client~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:Print.Management.Console~~~~0.0.1.0
dism /online /norestart /Remove-Capability /CapabilityName:Microsoft.Wallpapers.Extended~~~~0.0.1.0

rem Do not remove OCR or Windows will show "Something happened, and we couldn't install a feature" a few hours after cleanup
rem dism /online /norestart /Remove-Capability /CapabilityName:Language.OCR~~~en-US~0.0.1.0

rem Remove a lot of unnecessary apps

powershell "Get-AppXPackage | Where NonRemovable -Match false | Where IsFramework -Match false | Where Name -NotMatch '.*Windows(Store|Notepad|Calculator|Terminal)|NVIDIAControlPanel.*' | Remove-AppXPackage"
powershell "sleep 5"
powershell "Get-AppXProvisionedPackage -online | Where DisplayName -NotMatch '.*Windows(Store|Notepad|Calculator|Terminal)|NVIDIAControlPanel.*' | ForEach-Object { try { Write-Host $_.DisplayName ; Remove-AppxProvisionedPackage -Online -PackageName $_.PackageName  } catch { Write-Host $_ } }"

rem If you find widgets.exe running with several MSEdgeWebView2 child processes, run
powershell "Get-AppxPackage *WebExperience* | Remove-AppxPackage"

rem Set Computer name
powershell "Rename-Computer -NewName VGATESTx"

rem Finished

Download and install Firefox silently, make it default browser and adjust settings to remove telemetry and other junk
Code:
PowerShell "(New-Object System.Net.WebClient).DownloadFile('https://download.mozilla.org/?product=firefox-latest&os=win64&lang=en-US','%TEMP%\ff.exe'); Start-Process %TEMP%\ff.exe /s -NoNewWindow -Wait; Remove-Item %TEMP%\ff.exe"

echo pref("general.config.filename", "firefox.cfg"); > "C:\Program Files\Mozilla Firefox\defaults\pref\autoconfig.js"
echo pref("general.config.obscure_value", 0); >> "C:\Program Files\Mozilla Firefox\defaults\pref\autoconfig.js"

echo lockPref("browser.startup.homepage_override.mstone", "ignore"); > "C:\Program Files\Mozilla Firefox\firefox.cfg"
echo lockPref("browser.messaging-system.whatsNewPanel.enabled", false); >> "C:\Program Files\Mozilla Firefox\firefox.cfg"
echo lockPref("datareporting.healthreport.uploadEnabled", false); >> "C:\Program Files\Mozilla Firefox\firefox.cfg"
echo lockPref("app.shield.optoutstudies.enabled", false); >> "C:\Program Files\Mozilla Firefox\firefox.cfg"
echo lockPref("extensions.pocket.enabled", false); >> "C:\Program Files\Mozilla Firefox\firefox.cfg"
echo lockPref("browser.toolbars.bookmarks.visibility", "never"); >> "C:\Program Files\Mozilla Firefox\firefox.cfg"

rem Looks complicated, but this seems to be the only thing that works, let me know if you know an alternative
Powershell "Start-Process -FilePath 'C:\Program Files\Mozilla Firefox\firefox.exe' -ArgumentList '-setDefaultBrowser' ; Start-Sleep -s 3 ; Start-Process -FilePath 'C:\Program Files\Mozilla Firefox\firefox.exe' -ArgumentList '-setDefaultBrowser' ; Start-Sleep -s 3 ; taskkill /im firefox.exe ; taskkill /im firefox.exe ; taskkill /f /im systemsettings.exe"

User-specific (run after logging in as Administrator)
Code:
rem Install AnyDesk
rem PowerShell "(New-Object System.Net.WebClient).DownloadFile('https://download.anydesk.com/AnyDesk-CM.exe', '%TEMP%\ad.exe')" && start /wait %TEMP%\ad.exe --remove-first --install "%ProgramFiles%\AnyDesk" --start-with-win --update-manually --create-shortcuts --create-desktop-icon && del %TEMP%\ad.exe

rem Delete TPU user and user profile
net user TPU /delete
powershell "Get-WmiObject Win32_UserProfile | where {$_.localpath -like '*TPU'} | Remove-WmiObject"

rem Disable Windows Game DVR and Game Bar
reg add HKCU\Software\Microsoft\GameBar /v UseNexusForGameBarEnabled /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR /v GameDVR_Enabled /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR /v AppCaptureEnabled /t REG_DWORD /d 0 /f
rem Add workaround for bug that shows "You'll need a new app to open this ms-gamingoverlay" when starting a game
reg add HKEY_CLASSES_ROOT\ms-gamingoverlay /t REG_SZ /d "URL:ms-gamingoverlay" /f

rem Disable Windows Copilot
reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f
reg add HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f

rem Disable Game Mode
reg add HKCU\Software\Microsoft\GameBar /v AutoGameModeEnabled /t REG_DWORD /d 0 /f

rem Disable Web Search
reg add HKCU\Software\Policies\Microsoft\Windows\Explorer /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f

rem Hide Search Box from Task Bar
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Search /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f

rem Hide Task View button
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowTaskViewButton /t REG_DWORD /d 0 /f

rem Disable Backup Reminder nag screen
reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\BackupReminder /v BackupReminderToastCount /t REG_DWORD /d 3 /f

rem Windows Explorer Start on This PC instead of Quick Access
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v LaunchTo /t REG_DWORD /d 1 /f

rem Disable frequent/recent items in Explorer Quick Access
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer /v ShowFrequent /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer /v ShowRecent /t REG_DWORD /d 0 /f

rem Disable "Let's finish up Windows" nag screen
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement /v ScoobeSystemSettingEnabled /t REG_DWORD /d 0 /f

rem Disable Windows Feedback
reg add HKCU\SOFTWARE\Microsoft\Siuf\Rules /v NumberOfSIUFInPeriod /t REG_DWORD /d 0 /f

rem Show My Computer on Desktop
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f

rem Disable Recycle Bin
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoRecycleFiles /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v ConfirmFileDelete /t REG_DWORD /d 1 /f

rem Don't show Recycle Bin on Desktop
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v "{645FF040-5081-101B-9F08-00AA002F954E}" /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v "{645FF040-5081-101B-9F08-00AA002F954E}" /t REG_DWORD /d 1 /f

rem Set 24 hour time format
reg add "HKCU\Control Panel\International" /v iFirstDayOfWeek /t REG_SZ /d "0" /f
reg add "HKCU\Control Panel\International" /v sShortDate /t REG_SZ /d "yyyy-MM-dd" /f
reg add "HKCU\Control Panel\International" /v sShortTime /t REG_SZ /d "HH:mm" /f
reg add "HKCU\Control Panel\International" /v sTimeFormat /t REG_SZ /d "HH:mm:ss" /f

rem Turn off Sticky Key when Shift is pressed 5 times
reg add "HKCU\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d "506" /f

rem Show file extensions in Explorer
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t  REG_DWORD /d 0 /f

rem Show Hidden Files in Explorer
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v ShowSuperHidden /t REG_DWORD /d 1 /f

rem When shutting down Windows, automatically close applications instead of asking to confirm
reg add "HKCU\Control Panel\Desktop" /v AutoEndTasks /t REG_DWORD /d 1 /f

rem Always show more details in file copy dialog
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager /v EnthusiastMode /t REG_DWORD /d 1 /f

rem Set "Do this for all current items" checkbox by default
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager /v ConfirmationCheckBoxDoForAll /t REG_DWORD /d 1 /f

rem Expand left side tree of current folder on Explorer open
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v NavPaneExpandToCurrentFolder /t REG_DWORD /d 1 /f

rem Disable Taskbar Widgets
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /f /v TaskbarDa /t REG_DWORD /d 0

rem Disable "Let Windows manage my default printer"
reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows" /f /v LegacyDefaultPrinterMode /t REG_DWORD /d 1

rem Turn off Wallpaper
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers /v BackgroundType /t REG_DWORD /d 1 /f
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "" /f
reg add "HKCU\Control Panel\Desktop" /v LastUpdated /t REG_DWORD /d 0xffffffff /f
reg add "HKCU\Control Panel\Colors" /v Background /t REG_SZ /d "45 125 154" /f

rem Remove 10 second startup delay for application restore
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize /v StartupDelayInMSec /t REG_DWORD /d 0 /f

rem Disable Language Bar (shows an "EN" icon in tray when using US-English Windows with German keyboard)
powershell "Set-WinLanguageBarOption -UseLegacyLanguageBar"
reg add "HKCU\Software\Microsoft\CTF\LangBar" /v ShowStatus /t REG_DWORD /d 3 /f
taskkill /im ctfmon.exe

rem Unpin everything from Taskbar
powershell "(New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items()| foreach { ($_).Verbs() | ?{$_.Name.Replace('&', '') -match 'Unpin from taskbar'} | %{$_.DoIt()}  }"

rem Restore classic context menus / disable "Show more options" menu entry on right-click
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /t REG_SZ /d ""

rem Remove secondary en-US keyboard that gets added when keyboard is set to DE with US region
reg delete "HKCU\Control Panel\International\User Profile\en-US" /v "0409:00000409" /f
reg delete "HKCU\Control Panel\International\User Profile System Backup\en-US" /v "0409:00000409" /f
reg delete "HKCU\Keyboard Layout\Preload" /v "2" /f
reg delete "HKCU\Keyboard Layout\Substitutes" /v "d0010409" /f

rem Remove desktop.ini files from Desktop
del /a C:\Users\Public\Desktop\desktop.ini
del /a C:\Users\Administrator\Desktop\desktop.ini

rem Remove Edge from Desktop (depending on the Edge version this exists in one or the other folder)
del /a "C:\Users\Administrator\Desktop\Microsoft Edge.lnk"
del /a "C:\Users\Public\Desktop\Microsoft Edge.lnk"

Permanently disable Windows Update
Please note, once disabled, you can only restore MANUAL updates, the (default) automatic behavior is gone
Code:
rem Stop and delete Windows Update Medic Service (it re-enables Windows Update)
net stop WaasMedicSvc
takeown /f %SYSTEMROOT%\System32\WaaSMedicSvc.dll
cacls %SYSTEMROOT%\System32\WaaSMedicSvc.dll /e /p "Administrator":f
del %SYSTEMROOT%\System32\WaaSMedicSvc.dll

rem Stop and disable Update Orchestrator Service
net stop UsoSvc
takeown /f %SYSTEMROOT%\System32\usosvc.dll
cacls %SYSTEMROOT%\System32\usosvc.dll /e /p "Administrator":f
ren %SYSTEMROOT%\System32\usosvc.dll usosvc.dll.disabled

rem Stop and disable Windows Update Service
net stop wuauserv
takeown /f %SYSTEMROOT%\System32\wuaueng.dll
cacls %SYSTEMROOT%\System32\wuaueng.dll /e /p "Administrator":f
ren %SYSTEMROOT%\System32\wuaueng.dll wuaueng.dll.disabled
takeown /f %SYSTEMROOT%\System32\wuauserv.dll
cacls %SYSTEMROOT%\System32\wuauserv.dll /e /p "Administrator":f
ren %SYSTEMROOT%\System32\wuauserv.dll wuauserv.dll.disabled

rem Remove scheduled tasks
PowerShell "(New-Object System.Net.WebClient).DownloadFile('https://www.poweradmin.com/paexec/paexec.exe','%TEMP%\paexec.exe');
for /f "delims=" %f in ('dir /b %WINDIR%\System32\Tasks\Microsoft\Windows\WaaSMedic') do %TEMP%\paexec -i -s schtasks /delete /f /tn "Microsoft\Windows\WaaSMedic\%f"
rmdir %WINDIR%\System32\Tasks\Microsoft\Windows\WaaSMedic
copy NUL %WINDIR%\System32\Tasks\Microsoft\Windows\WaaSMedic

for /f "delims=" %f in ('dir /b %WINDIR%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator') do %TEMP%\paexec -i -s schtasks /delete /f /tn "Microsoft\Windows\UpdateOrchestrator\%f"
rmdir %WINDIR%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator
copy NUL %WINDIR%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator

for /f "delims=" %f in ('dir /b %WINDIR%\System32\Tasks\Microsoft\Windows\WindowsUpdate') do %TEMP%\paexec -i -s schtasks /delete /f /tn "Microsoft\Windows\WindowsUpdate\%f"
rmdir %WINDIR%\System32\Tasks\Microsoft\Windows\WindowsUpdate
copy NUL %WINDIR%\System32\Tasks\Microsoft\Windows\WindowsUpdate

del %TEMP%\paexec.exe

Restore Windows Update (manual updates only)
Code:
net stop wuauserv
ren %SYSTEMROOT%\System32\wuaueng.dll.disabled wuaueng.dll
ren %SYSTEMROOT%\System32\wuauserv.dll.disabled wuauserv.dll
net stop UsoSvc
ren %SYSTEMROOT%\System32\usosvc.dll.disabled usosvc.dll

TODO: disable focus asssist
TODO: change Notepad style to not restore previously opened documents
 
Last edited:
Joined
Jul 9, 2015
Messages
3,464 (0.99/day)
System Name M3401 notebook
Processor 5600H
Motherboard NA
Memory 16GB
Video Card(s) 3050
Storage 500GB SSD
Display(s) 14" OLED screen of the laptop
Software Windows 10
Benchmark Scores 3050 scores good 15-20% lower than average, despite ASUS's claims that it has uber cooling.
Which part of this works without re-install?
 
Top