Auto, computer and electronics hardware hacking.
Electronic projects, system administration scripts, ideas and anything fun and/or geeky :)
Thursday, June 5, 2008
Scheduled Shutdown of Windows XP Machines
Here is a script that i made as an answer to a free solution to an automatic shutdown of domain pcs. Basically, you create a domain computer startup policy that will install this compiled script. (compile using autoitscript.com) Everything is pretty much self explanatory.
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; This script will shut down a machine on a schedule.
; The system time will be checked against the schedule only as often as necessary.
; If there are two hours to go, it will check back in two hours, etc...
; The sequence allows the code to run without checking the time every minute.
; The program should be launched as a domain computer startup policy as follows