David Hardy explains how to force all Windows 2000/XP workstations on your network to shutdown at certain time. He uses a custom package in ZENworks Patch Management 6.3.
In our environment, we wanted to be sure all PCs were shut down overnight. To do this, I created a batch file using the ‘schtask’ command and psshutdown.exe to create a shutdown task at 11:30 each night. After creating this batch file, I sent it out and executed the file with ZENworks Patch Manager.
schtasks /create /tn shutdown /tr "c:\patch\psshutdown.exe /accepteula -c -t 300" /sc daily /st 23:30:00 /ru system