Solved

Shutdown script for Windows 2003 servers.

Posted on 2008-10-15
4
1,391 Views
Last Modified: 2012-05-05
I have 21 servers that I wish to shutdown but initiating a shutdown script.  However I am stuck on two things;

A) Should I use Vbscript or a simple batch file

B) Depending on the answer above what is the exact syntaxt that will work?    

I have a rudimentary understanding of the shutdown command (eg. shutdown -f -t 00] but I am not quite sure how to send this to remote machine  but I know the functionality is there.  Thanks you.
0
Comment
Question by:every1isevil2
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:mikef147
Comment Utility
The /m \\servername is the switch to specify another compuer.
0
 
LVL 4

Author Comment

by:every1isevil2
Comment Utility
Would you be able to create an exact syntax sample for me?  And how can I add multiple servers to that?

/m \\servername /m \\servername  OR /m \\servername \\servername

Thanks again.
0
 
LVL 2

Accepted Solution

by:
mikef147 earned 150 total points
Comment Utility
I believe you can only specify 1 server at a time per line, so if you wanted to script for 21 servers you could use a simple batch file and do, for example

shutdown /m \\server1
shutdown /m \\server2
etc

If you want a specific time delay, you can add in /t xxx (# of seconds).   If you want them to shutdown and reboot, add the /r switch.  

For example, this should shutdown and reboot server1 after 60 seconds:   shutdown /r /t 60 /m \\server1

0
 
LVL 4

Author Closing Comment

by:every1isevil2
Comment Utility
Great thank you.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now