This wikiHow teaches you how to configure your Mac or PC to safely shut down at a certain time. Make sure you save your files frequently so you don't lose data during a shutdown. Open the Task Scheduler app. If you want your scheduled...
Method 1 of 4:
Scheduling Regular Shutdowns for Windows
Open the Task Scheduler app. If you want your scheduled shutdown to occur more than once, you'll want to use Task Scheduler. Task Scheduler is available on all versions of Windows. Here's how to find it:
Click Create Basic Task in the "Actions" panel. It's at the top of the panel on the right side of the window. This opens the "Create a Basic Task" wizard.

Type Shutdown timer for the name and click Next.

Select when you want the task to activate and click Next. For example, if you want the computer to turn off every night at 11:30 PM, select Daily. If this is just a one-time scheduled thing, select One time.
Enter the time and date and click Next. For example, let's say that beginning on July 19, 2019, you want your PC to shut down nightly at 11:30 PM. You'd enter 7/19/2019 into the date field, and 11:30:00 PM into the time field.
Select "Start a program" and click Next.

Type the path to the shutdown.exe app into the "Program/script" box. The location should be C:WindowsSystem32shutdown.exe unless you've changed the letter for your Windows drive.

Type /s into the "Add arguments" field and click Next.
Review your shutdown task and click Finish. The summary screen gives you a chance to review the scheduled date(s) and time(s) for the shutdown. Once you save your task, the computer will shut down at the scheduled time.Update 04 March 2020
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZpmlqbyurdOimpqknK56tLTUrWSdp6ejerq71KtknKedpcK1sdFmmK1lkWLAsbHCop2inZRiwaq5xA%3D%3D