Article

dhardy71's picture
article
Reads:

7145

Score:
0
0
 
Comments:

1

Using PsShutdown and ZENworks Patch Management 6.3 to Shut Down Windows Workstations

Author Info

6 February 2008 - 1:16pm
Submitted by: dhardy71

Tags

Tip

(View Disclaimer)

By David Hardy

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.

  1. Download PsShutdown (free).


  2. Create batch file. Here is the batch file I used:
    schtasks /create /tn shutdown /tr "c:\patch\psshutdown.exe /accepteula -c  -t 300"  /sc daily /st 23:30:00  /ru system 
    Explanation:
    The first part creates a task named “shutdown”.
    Starting with “C:\patch\....”, The “patch” directory is where we always place files sent out with Patch Manager.
    This section configures the parameters of the task. If you want the task to run without user intervention, you must put the ‘accepteula’ switch in the task.
    The “–t 300” gives users a warning that the pc is going to shutdown in 5 minutes (300 seconds) As you can see, it runs daily at 11:30 pm (24 hour format).


  3. Place this batch file (along with psshutdown.exe) in the same directory. Again I use C:\Patch.

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

sacosta's picture

Shutdown Solutions

Submitted by sacosta on 15 February 2008 - 1:26pm.

Can you give me the run-down on this line by line. I am new to creating my own items to be pushed down by Patchlink and don't want to blow it down to all 6000 of our machines.

Thank you,

© 2013 Novell