This process can be automated by creating a scheduled task in control panel.
First go to the control panel and open scheduled tasks.
In the scheduled task window, click Add scheduled task.
Now you will get a scheduled task wizard. Click the next button (It might take some time to load the next window).
Now click the browse button. Browse to C:\windows\system32\shutdown.exe and click the open button.
Now click the next button. Now give a name for the scheduled task. Click the radio button “onetime only” and then click the next button.
Specify the start time and the end time.
Click the next button. And then enter the user name and password for your account. You should be an administrator.
Then click the finish button.
First go to the control panel and open scheduled tasks.
In the scheduled task window, click Add scheduled task.
Now you will get a scheduled task wizard. Click the next button (It might take some time to load the next window).
Now click the browse button. Browse to C:\windows\system32\shutdown.exe and click the open button.
Now click the next button. Now give a name for the scheduled task. Click the radio button “onetime only” and then click the next button.
Specify the start time and the end time.
Click the next button. And then enter the user name and password for your account. You should be an administrator.
Then click the finish button.