If you didn’t already know, your Windows 10 PC has a dark mode that helps reduce eye strain and makes your PC look darker. This option is in the Settings app, and you can turn it on or off at any time.
The dark mode is mainly used at night and the light mode is used for the day. If you also use it on your computer, you may have to manually switch the mode every day.
In fact, you can simplify this process a bit by creating a task that automatically turns dark mode on or off in Windows 10. Setting it up is pretty simple and you only need to do it once. Then it starts automatically every day and switches modes according to your requirements.
Use Task Scheduler to automatically enable dark mode in Windows 10
Task Scheduler allows you to automate a number of tasks on your Windows 10 computer. You can use it to create a task that automatically turns on dark mode at night on your PC. You can set a specific time for it when the task starts and the mode is enabled.
- Click on the Cortana search box, find Task Scheduler, and click it when you see it in the search results.
- Click the Action menu at the top and select the Create Baseline Task option.
- Enter a name for the task, optional a description if you like, and click Next to continue. You can use something like “Turn on dark mode” as the title so that you can recognize the task later.
- On the next screen, you can set the frequency of the task. Select Daily to have the dark mode on your system turn on every night. Then click Next to continue.
- This will ask you what time you want to activate dark mode. Select a time when you usually turn on the mode on your computer and click Next.
- Here is the part that asks what the task should do when it starts. Select “Run this program” as it is necessary to complete the task and click “Next”.
- The next screen will ask you which program the task should run on startup. You need to set the following options to enable dark mode.
Program / script:
% SystemRoot% system32 WindowsPowerShell v1.0 powershell. exe
Add arguments (optional):
New-ItemProperty -Path HKCU: SOFTWARE Microsoft Windows CurrentVersion Themes Personalize – Naming systemUsesLightTheme -Value 0 -Type Dword -Force; New-ItemProperty -Path HKCU: SOFTWARE Microsoft Windows CurrentVersion Themes Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force
Then click Next to continue.
- You should now be on the task summary screen. Select the Open Properties dialog box for this task when I click Finish and then click Finish.
- The task properties window will open on your screen. Select the tab labeled “Conditions” at the top and uncheck “Run this task only when the computer is connected to AC power.” Then click OK to save your changes.
- Start Task Scheduler on your computer and click Create Basic Task.
- Enter “Enable Light Mode” as the task name, enter a description if you like, and click Next at the bottom.
- Since you selected Daily for the dark mode, you will need to select Daily for the light mode task as well. Then click Next to continue.
- You will be prompted to enter the time when the task should be started. Specify the time when you want your computer to be in light mode and click Next.
- Select “Run this program” on the next screen and click “Next”.
- Enter the following information on the screen and click Next.
Program / script:
% SystemRoot% system32 WindowsPowerShell v1.0 powershell.exe
Add arguments (optional): < br />
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
- Check mark. Open the Properties dialog for this task when I click Finish and Finish.
- Select the Conditions tab, uncheck Run this task only if the computer is connected to AC power, and click OK.
- Open Task Scheduler, find your task in the list, right-click it and select Properties.
- Click the Triggers tab, select your trigger and click Edit.
- Enter a new time and click “OK” at the bottom.
- Start Task Scheduler and find your task.
- Right-click the task and select Delete.
When the clock reaches the time you specified, the Task Scheduler will launch your task and activate dark mode on your system. He will do this every night at the time you specify.
Deactivate dark mode automatically on Windows 10 using Task Scheduler
The next morning, when you wake up and look at your computer, you will find that it is still in dark mode. This is because the task you created only turns on dark mode and does not turn it off in the morning.
To return your computer to light mode during the daytime, you need to create a separate task for it in the task scheduler.
It will now automatically turn on light mode at the time you choose.
Change mode time settings
You can change the time of the schedule at any time.
Disable automatic activation of dark and light modes in Windows 10
If you want to disable all automatic action, do the following.
You will need to complete both tasks.
Use an app to schedule Windows 10 dark and light modes
There is a free open source application called Windows 10 Auto Dark Mode that will help you easily set up dark and light modes on your computer.
You can use it instead of the Task Scheduler to activate light and dark themes at a time of your choice.