My Profile Photo

luke.geek.nz


An IT Engineer with a love for all things IT including (but not limited to), Microsoft Azure, Automation and Service Management!


Shutdown Batch Script

Save the following into a notepad document and name it with .bat at the end – for example shutdown.BAT. You can then either set it to the desktop or add it to a scheduled task to turn your computer off at a certain time.

<br /> @echo off<br /> shutdown.exe -s -t 00<br /> exit<br />

Note: Changing “-s” to “-r” will restart the computer, instead of turning it off and adjusting the “-t” will change the time in seconds till it shuts down. Useful if you are wanting the computer to shutdown after an hour or so.

comments powered by Disqus