Skip to content

Instantly share code, notes, and snippets.

@cr2007
Last active January 13, 2023 12:48
Show Gist options
  • Save cr2007/84a51cb6851a4fe7450411694883831f to your computer and use it in GitHub Desktop.
Save cr2007/84a51cb6851a4fe7450411694883831f to your computer and use it in GitHub Desktop.
Automating Dark, Light Mode for Windows 10

Using the Task Scheduler, you can schedule when to enable Dark Mode for apps by using these Powershell commands and setting them to be triggered at the time you prefer.

Switching to Dark Theme

New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force

Switching back to Light Mode

New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force;

Source: Windows Central, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment