How to switch between Windows 10 light and dark modes on schedule automatically
Do you want Windows 10 to switch between the light and dark modes on schedule automatically? Here's how you can do this, even though the system lacks an official option.
Alongside the slew of personalization settings, Windows 10 ships with two color modes, including the "light" color mode, which applies a lighter color scheme across apps and desktop elements, such as Start menu, taskbar, and action center, and it's a mode that works well during daytime. Then there's the "dark" color mode that allows you to set a darker set of colors across the desktop and apps, and it's more suited for low-light environments.
Whether you like the lighter or darker colors on your device, Windows 10 makes it easy to change modes using the Settings app. However, it doesn't offer an option to switch between the two color modes depending on the time of day automatically, similar to other OSes, including Xbox One.
If switching between dark and light (and vice versa) is an option you would like to have on your device, you can create an automated process using the Task Scheduler and a few simple PowerShell commands to modify the Registry to switch to light mode during the day and dark mode at night, automatically.
In this Windows 10 guide, we walk you through the steps to configure your device to switch between the light and dark system modes depending on the time of day, using a few PowerShell commands and Task Scheduler.
- How to switch from dark to light system mode on Windows 10
- How to switch from light to dark system mode on Windows 10
(Warning: This is a friendly reminder that editing the Registry is risky, and it can cause irreversible damage to your installation if you don't do it correctly. We recommend making a temporary full backup of your PC before proceeding.)
How to switch from dark to light system mode on Windows 10
To switch from the dark to light system mode automatically on Windows 10, use these steps:
- Open Start.
- Search for Task Scheduler and click the top result to open the app.
- Expand the Task Scheduler Library folder.
- Right-click the "Task Scheduler Library," and select the New Folder option.
- Type a name for the folder (for example, MyTasks), and click the OK button.(Quick note: We're creating a new folder to keep your tasks and system tasks separate, which makes it easier to manage tasks.)
- Right-click the "MyTasks" folder (if applicable), and select the Create Task option.
- Click on the "General" tab.
- Under the "Name" field, enter a descriptive name for the task. (For example, switch_light_mode).
- Under the "Security options" section, select the option Run whether user is logged on or not option.
- Check the Do not store password option.
- Click on the Triggers tab.
- Click the New button.
- Under "Begin the task," select the On a schedule option. (You can configure any trigger you want.)
- Under the "Settings" section, select the Daily option.
- Set the time you want Windows 10 to switch automatically to the light mode. (For example, 6:30 a.m.)
- Click the OK button.
- Click on the Actions tab.
- Click the New button.
- Using the "Start a program" action, under the "Settings" section, copy and paste the following path:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
- Under the "Add arguments (optional)" field, copy and paste the following PowerShell command:
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 1 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 1 -Type Dword -Force
The above command will try to create a SystemUsesLightTheme and AppsUseLightTheme DWORD in the Registry and set their values to 1, which disables the dark and enables the light color mode across apps and desktop.
- Click the OK button.
- Click on the Settings tab.
- Check the Run task as soon as possible after a scheduled start is missed option, which should help to run the command if Task Scheduler misses the schedule because your computer was asleep.
- Check the If the task fails, restart every option, and make sure it's set to 1 minute and only 3 restart attempts.
- Click the OK button.
Once you complete these steps, every day at the time you specified Windows 10 will switch to the light mode for apps and the desktop environment automatically.
Get the Windows Central Newsletter
All the latest news, reviews, and guides for Windows and Xbox diehards.
How to switch from light to dark system mode on Windows 10
To switch from the light to dark system mode on schedule automatically, use these steps:
- Open Start.
- Search for Task Scheduler, and click the top result to open the app.
- Expand the Task Scheduler Library folder.
- Right-click the "MyTasks" folder (if applicable), and select the Create Task option.
- Click on the General tab.
- Under the "Name" field, enter a descriptive name for the task. (For example, switch_dark_mode.)
- Under the "Security options" section, select the option Run whether user is logged on or not option.
- Check the Do not store password option.
- Click on the Triggers tab.
- Click the New button.
- Under "Begin the task," select the On a schedule option. (You can configure any trigger you want.)
- Under the "Settings" section, select the Daily option.
- Set the time you want Windows 10 to switch automatically to the dark mode. (For example, 6:30 p.m.)
- Click the OK button.
- Click on the Actions tab.
- Click the New button.
- Using the "Start a program" action, under the "Settings" section, copy and paste the following path:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe
- Under the "Add arguments (optional)" field, copy and paste the following PowerShell command:
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0 -Type Dword -Force; New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
The above command will try to create a SystemUsesLightTheme and AppsUseLightTheme DWORD in the Registry and set their values to 0, which disables the light and enables the dark mode.
- Click the OK button.
- Click on the Settings tab.
- Check the Run task as soon as possible after a scheduled start is missed option, which should help to run the command if Task Scheduler misses the schedule because your computer was asleep.
- Check the If the task fails, restart every option, and make sure it's set to 1 minute and only 3 restart attempts.
- Click the OK button.
After you completing the steps, every day at the time you specified Windows 10 will switch to the dark mode for apps and the desktop environment automatically.
If you want to make sure the task is working, you can always right-click the tasks, and select the Run option.
When you no longer need this feature, you can open the Task Scheduler folder with the tasks you created, and then right-click and delete each task. Then you can continue to use the Settings app to switch modes from the "Personalization" page.
Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.