Created
January 23, 2022 17:02
-
-
Save Mufaddal1125/0bbd305a7577fd460efb655f39801639 to your computer and use it in GitHub Desktop.
Switch app theme in windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$mode = Get-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme | |
if ($mode.AppsUseLightTheme -eq 1) { | |
Write-Output "Mode is 1, changing to 0" | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 | |
} | |
elseif ($mode.AppsUseLightTheme -eq 0) { | |
Write-Output "Mode is 0, changing to 1" | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment