Shutdown computer using batch file & Task Scheduler

Issue: User refused to shutdown computer at the end of the day

Solution:
1) Create a shutdown batch file
shutdown.bat:
  @echo off
     cd\
     cls
     c:
     shutdown /t 30 /s

2) Create a Task in Task Scheduler
General: Run whether user is logged  on or not
Run with highest privileges
Trigger: daily at 5pm
Action: Start a program
Program/Script: C:\temp\shutdown.bat
Conditions: Wake the computer to run this task

Reference:
https://technet.microsoft.com/en-us/library/bb491003.aspx

shutdown

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s