Skip to content

Instantly share code, notes, and snippets.

@tomash
Created March 12, 2022 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomash/324121f95a7c52c7f9af8cac9ff1e24e to your computer and use it in GitHub Desktop.
Save tomash/324121f95a7c52c7f9af8cac9ff1e24e to your computer and use it in GitHub Desktop.
One-click enable or disable Dark Mode in Windows 10
powershell.exe New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
powershell.exe New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 1 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment