Skip to content

Instantly share code, notes, and snippets.

@jpda
Created May 29, 2019 15:12
Show Gist options
  • Save jpda/cc28986ed4b749b9619c35efa800269e to your computer and use it in GitHub Desktop.
Save jpda/cc28986ed4b749b9619c35efa800269e to your computer and use it in GitHub Desktop.
swaps windows system and apps from dark/light mode
$currentApps = (Get-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme).AppsUseLightTheme
$currentSystem = (Get-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme).SystemUsesLightTheme
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value (1 - $currentApps)
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value (1 - $currentSystem)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment