Windows 10: How to Enable Dark mode in PowerShell

With Windows 10 Anniversary Update, one can choose between the light and dark modes. Here is a set of PowerShell commands to set this in case you want to automate it. These are slightly modified commands from this reddit post.

To use the dark mode:

Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0

To use the light mode:

Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1

Comments

Comments powered by Disqus