Create a basic task named Shutdown. (Set Auto Shutdown)
Step 1: Open Task Scheduler.
Step 2: Tap Create Basic Task on the right.
Step 3: Type Shutdown as the task name and click Next.
Step 4: Choose when the task starts from Daily, Weekly, Monthly, One time, When the computer starts, When I log onand When a specific event is logged, and then hit Next.
Step 5: Set the start time of the task and click Next.
Step 6: Select Start a program and tap Next.
Step 7: Click the Browse button, open Disk C/Windows/System32, choose the exe file named shutdown and hit Open.
Step 8: Enter –s as the argument and click Next.
Step 9: Click Finish to complete the task creation and bring the task into effect.