Is this possible ? Id rather do it so I can run a script rather than having to remote desktop and shutdown that way..
come up in the server room from behind…grab all power cords…pull…![]()
Sure, just make a .bat file (use notepad, and just rename extension to .bat)
Here’s one that we use:
%windir%\System32\shutdown.exe -s -m \\server1 -t 00 -f
Just add a line in there for every server. For more information on the switches look here: Restart or Shut Down a Remote Computer and Document the Reason | Microsoft Learn
You can also create a bat file that will restart all your servers by adding the -r switch.
This sounds like a great idea. We’ve been using a trial piece of software running on our file server to do this recently, but it would be nice to do it ‘for free’. If each rendernode has a username and password, must this go into the bat file somewhere as I don’t seem to have success with it at the moment?
you have to connect to the ipc share first to supply your credentials. Seems more straight forward to me to use psexec wich is free too and allows supplying credentials as well as run arbitrary commands.
Regards,
Thorsten
You’ve lost me…![]()
the ipc share is an administrative share you can use to supply user and password to gain admin access to the remote machine with a command like this :
net use \\hostname\ipc$ password /user:username
(that was from the top of my head so i cant 100% confirm i got the syntax right :P)
psexec is part of microsoft’s sysinternal tools wich are available for free. It allows to remotely run command line commands with admin credentials:
Regards,
Thorsten
Cheers for the replies guys. I think I tried the shutdown command in prompt before but didnt have any luck with it…im guessing I need to do what instinct said first…
I believe for the command line shutdown, the user sending the shutdown has to be an administrator user on the servers.