Skip to content

Instantly share code, notes, and snippets.

@tcookj66
Forked from AzimsTech/windows_23h2.bat
Created July 19, 2023 01:06
Show Gist options
  • Save tcookj66/f448dcae75fb0b32ed7d9f7f46e6230a to your computer and use it in GitHub Desktop.
Save tcookj66/f448dcae75fb0b32ed7d9f7f46e6230a to your computer and use it in GitHub Desktop.
Windows 22H2 Tweaks
:: Quick setup for Windows 10 22H2
::
:: https://azimstech.github.io
:: remove unwanted win11 apps: https://gist.github.com/noseratio/40965eb5c3645fe8bf2b9bb6298d1c83
pause
:: Uninstall useless stuff
winget uninstall "windows web experience pack"
winget uninstall "xbox game bar"
winget uninstall "cortana"
:: Off Language Bar and Input Indicator (useful for Valve's games)
reg add HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar /v ShowStatus /t REG_DWORD /d 3 /f
Set-WinLanguageBarOption -UseLegacyLanguageBar
:: Add Recycle bin to file explorer
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}"
:: Add User folder to file explorer
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{59031a47-3f72-44a7-89c5-5595fe6b30ee}"
:: Disable Web Search
REG ADD "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d 1 /f
:: Taskbar. Switch to last opened window when clicking on grouped apps
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v LastActiveClick /t REG_DWORD /d 1 /f
:: ...or do not group at all
:: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarGlomLevel /t REG_DWORD /d 2 /f
:: Show all Taskbar icons
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" /v EnableAutoTray /t REG_DWORD /d 0 /f
:: Small TaskBar
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskBarSmallIcons /t REG_DWORD /d 1 /f
:: Hide Search icon
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
:: Remove Meet Now icon
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "HideSCAMeetNow" /t REG_DWORD /d 1 /f
:: Hide Task View button
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f
:: Turn On Show Accent Color on Title Bars and Window Borders
reg add "HKCU\Software\Microsoft\Windows\DWM" /v ColorPrevalence /t REG_DWORD /d 1 /f
:: Disable HDCP Crap (Fuck Nvidia)
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v RMHdcpKeyglobZero /t REG_DWORD /d 1 /f
:: Change short time format
reg add "HKCU\Control Panel\International" /v sShortTime /t REG_SZ /d "h:mm" /f
:: Turn off Fast Startup
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /V HiberbootEnabled /T REG_dWORD /D 0 /F
:: Chocolatey skip confirmation
choco feature enable -n=allowGlobalConfirmation
:: Hide Action Center in Taskbar
reg add "HKCU\Software\Policies\Microsoft\Windows\Explorer" /v "DisableNotificationCenter" /t REG_DWORD /d "1" /f
:: Install Steam to C:\Steam
cinst steam-client --install-arguments="'/S /D=C:\Steam'"
:: Disable Xbox GameDVR/GameBar
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t "REG_DWORD" /d "0" /f
reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t "REG_DWORD" /d "0" /f
:: Disable NetBIOS over TCP/IP on all network adapters
reg add "HKLM\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces\tcpip*" /v NetbiosOptions /t REG_DWORD /d 2 /f
:: Install Microsoft Store on LTSC 2021
wsreset -i
:: Remove 3D Objects
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /F
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /F
:: Enable Verbose startup message
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v verbosestatus /t REG_DWORD /d 1 /f
:: Disable Aero Shake
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v DisallowShaking /t REG_DWORD /d 1 /f
:: Clear All Event Viewer Logs
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
:: Prevent Smartscreen.exe from running
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /f /v SmartScreenEnabled /d "Off"
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /f /v EnableSmartScreen /d 0 /t reg_dword
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smartscreen.exe" /f /v Debugger /d "%systemroot%\system32\locator.exe"
:: Turn off Windows Update auto download
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f
:: Enable Clipboard Sharing in Windows Sandbox
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Sandbox" /f
:: Enable Windows Sandbox
Dism /Online /Enable-Feature /FeatureName:Containers-DisposableClientVM /All
:: Cleanup WinSxS folder (Remove previous windows updates)
Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
:: Set Device Name
Rename-Computer -NewName "Hasswell-WS"
:: Accpet long file paths
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
:: Laggy input features
reg add "HKCU\Software\Microsoft\Input" /v "IsInputAppPreloadEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Input\Settings" /v "VoiceTypingEnabled" /t REG_DWORD /d "0" /f
reg add "HKCU\Software\Microsoft\Input\TIPC" /v "Enabled" /t REG_DWORD /d "0" /f
:: Show most used apps
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_TrackProgs /t REG_DWORD /d 1 /f
reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoChangeStartMenu /t REG_DWORD /d 0 /f
:: Disable hibernation
powercfg -h off
:: Turn Off Enhance Pointer Precision
reg add "HKCU\Control Panel\Mouse" /v MouseSpeed /t REG_SZ /d 0 /f
reg add "HKCU\Control Panel\Mouse" /v MouseThreshold1 /t REG_SZ /d 0 /f
reg add "HKCU\Control Panel\Mouse" /v MouseThreshold2 /t REG_SZ /d 0 /f
:: Hide Input Indicator on Taskbar
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar" /v "ShowStatus" /t REG_DWORD /d 4 /f
:: Enable App Launch tracking
reg delete "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\EdgeUI" /v DisableMFUTracking /f
:: Chrome - Use Secure DNS
reg add "HKLM\Software\Policies\Google\Chrome" /v DnsOverHttpsMode /f /t REG_SZ /d automatic
reg add "HKLM\Software\Policies\Google\Chrome" /v DnsOverHttpsTemplates /f /t REG_SZ /d "https://chrome.cloudflare-dns.com/dns-query"
:: disable web search win11 start menu
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /V BingSearchEnabled /T REG_DWORD /D 0 /F
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment