Skip to content

Instantly share code, notes, and snippets.

@AzimsTech
Last active January 29, 2025 14:06
Show Gist options
  • Save AzimsTech/3fab09dea50ead980e73a0f1690cc0f1 to your computer and use it in GitHub Desktop.
Save AzimsTech/3fab09dea50ead980e73a0f1690cc0f1 to your computer and use it in GitHub Desktop.
Windows 23H2 Tweaks
:: Quick setup for Windows 10/11 23H2
::
:: https://azimstech.github.io
:: remove unwanted win11 apps: https://gist.github.com/noseratio/40965eb5c3645fe8bf2b9bb6298d1c83
pause
:: Remove Your Phone & Mobile Devices
Get-AppxPackage Microsoft.YourPhone -AllUsers | Remove-AppxPackage
Get-AppxPackage MicrosoftWindows.CrossDevice | Remove-AppxPackage
:: Enables canceled Windows 10X boot animation
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\BootControl" /v "BootProgressAnimation" /t REG_DWORD /d 1 /f
:: Remove & Disable Xbox GameDVR/GameBar
Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage
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 Widget (no more Microsoft Edge WebView2 running in the background)
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\NewsAndInterests\AllowNewsAndInterests" /v "value" /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Dsh" /v "AllowNewsAndInterests" /t REG_DWORD /d 0 /f
:: Disable Google Cast
reg add "HKLM\Software\Policies\Google\Chrome" /v "EnableMediaRouter" /t REG_DWORD /d "0" /f
reg add "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /v "EnableMulticast" /t REG_DWORD /d "0" /f
:: Set the maximum password age to never expire
net accounts /maxpwage:unlimited
:: Force Mica transparency effects on windows 11
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Dwm" /v ForceEffectMode /t REG_DWORD /d 2 /f
:: Set user language to en-MY English (Malaysia)
:: https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a
Set-WinUserLanguageList "en-MY" -Force
Set-Culture "en-MY"
:: Set country/region to Malaysia
:: https://learn.microsoft.com/en-us/windows/win32/intl/table-of-geographical-locations
Set-WinHomeLocation -GeoID 167
:: Disable Soft Disconnect Computer from a Network
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /v "fSoftDisconnectConnections" /t REG_DWORD /d 0 /f
:: Uninstall useless stuff
winget uninstall --id 9MSSGKG348SP
winget uninstall --id MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy -e
winget uninstall "xbox game bar"
winget uninstall "cortana"
winget uninstall "microsoft teams"
winget uninstall "onedrive"
Get-AppxPackage *CrossDevice* -AllUsers | Remove-AppxPackage -AllUsers
:: 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 "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /V BingSearchEnabled /T REG_DWORD /D 0 /F
reg add "HKLM\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 Widgets
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v TaskbarDa /t REG_DWORD /d 0
:: 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 NetBIOS over TCP/IP on all network adapters
$i = 'HKLM:\SYSTEM\CurrentControlSet\Services\netbt\Parameters\interfaces'
Get-ChildItem $i | ForEach-Object {
Set-ItemProperty -Path "$i\$($_.pschildname)" -name NetBiosOptions -value 2
}
:: 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
:: To disable Delivery Optimization for Windows Updates
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DODownloadMode /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" /v DownloadMode /t REG_DWORD /d 0 /f
:: To disable Delivery Optimization for Microsoft Store apps
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\DeliveryOptimization" /v SystemSettingsDownloadMode /t REG_DWORD /d 0 /f
:: Do not let apps run in the background
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsRunInBackground" /t REG_DWORD /d "2" /f
:: Disable NTFS Last Access Time Stamp Updates
fsutil behavior set disablelastaccess 1
:: Disable USB Selective Suspend Power Plan (Balanced) - for reducing DPC latency
powercfg /SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0
:: Disable Virtualization-based security
bcdedit /set hypervisorlaunchtype off
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment