Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

This question is for Windows workstations (XP/Vista)

I know I can use shutdown /i and PSShutdown, and I even found a Powershell script that will reboot all the computers in an OU.

However,

Here's what I'm looking for:

  1. The ability to use an input file for a list of computer names to be rebooted/shutdown
  2. The same basic functionality that shutdown or PSShutdown provides
  3. The ability to log the results

It seems that #3 is the toughest part to find a solution for...

Anyone able to help??

share|improve this question
    
What precisely are you looking for in the logged results? Simply "Success!" or "Fail!" is what I'm imagining but I don't want to assume anything. –  Wesley Sep 25 '09 at 2:51
    
Ideal would be Success/Failure of actually rebooting the list of computers but I'd settle for Success/Failure of whether or not the computers can even be contacted to schedule the shutdown. –  TheCleaner Sep 25 '09 at 13:22
    
Of course, PSShutdown can do #1 and #2, but you are correct in your observations that #3 is the sticky wicket. =) –  Wesley Sep 25 '09 at 15:37

1 Answer 1

up vote 2 down vote accepted

At the risk of being voted down, I'd write a PowerShell script to read in a list of machines to shut down, run the PSShutdown against each machine, and record (and optionally parse) the feedback from PSShutdown in a log file.

share|improve this answer
    
That would be fine, if I knew how to do that :) –  TheCleaner Sep 25 '09 at 13:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.