Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shutdown.exe

Status
Not open for further replies.

cranebill

IS-IT--Management
Jan 4, 2002
1,113
US
In Windows XP i can run the following statement in a batch file under scheduled tasks to shutdown remote computers:

shutdown -f -s -m \\Computer-14

When i have tried this from the server which is 2000 Advanced server (DC) it just scrolls in command prompt. Others have suggested a shutdown.exe to download but it doesnt do remote computers which defeats what im trying to accomplish.

Any Ideas?

Bill
 
Bill,
Make sure you get the one (shutdown.exe) from the NT or 2K resource kit. That shutdown.exe will support remote shutdowns.

From the resource kit help section.
shutdown [\\computername] [/l] [/a] [/r] [/t:xx] ["msg"] [/y] [/c] [/?]

Where:

\\computername
Remote computer to shut down. If no name is given but the tool is started with any of the other options, the local computer name will be used.
/L
Specifies a local shutdown.
/A
Quits a system shutdown. This can only be done during the timeout period. If this switch is used, all others are ignored.
/R
Restart the computer specifed after shutdown.
/T:xx
Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
"msg"
Specifies an additional message with a maximum of 127 characters, surrounded by quotation marks.
/y
Answers questions with "yes".
/C
Forces running applications to close.



Caution

If you use the /c parameter, Windows 2000 ignores the application's option to save data that might have changed. You will see no File Save dialog box, because Windows 2000 will force the application to close. This will result in a loss of all data not previously saved.

/? (or shutdown without parameters)
Display help.
Examples
Shutdown and reboot a remote computer.
shutdown \\IMAREMOTECOMPUTER /R
Shutdown a local computer, closing all applications in 5 seconds.
shutdown /L /C /T:5


 
Where do i get the resource kit.... isnt it on the cd's somewhere? i cant remember for the life of me.

Bill
 
Bill,
You have to buy the win2k resource kit, but the shutdown.exe tool from nt4 is supposed to work (remotely). You can get this at
Also the XP vers of shutdown is also supposed to work so if you have access to an xp workstation then copy the shutdown.exe file and try running it from 2k.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top