Skip to content

Instantly share code, notes, and snippets.

@jlschrag
Created October 30, 2021 03:42
Show Gist options
  • Save jlschrag/942e1bbcb101414ec7c21421f851309d to your computer and use it in GitHub Desktop.
Save jlschrag/942e1bbcb101414ec7c21421f851309d to your computer and use it in GitHub Desktop.
$val = (Get-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize').AppsUseLightTheme
$newval = -Not $val
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value $newval
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value $newval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment