Reboot server through command prompt
Posted on 2006-03-23
Have a 2003 Server that gives trouble everyday and needs to be rebooted. When attempting to RDP the message about it be unavailable appears. I can ping the server and I can connect to it through my PC Computer Management, but when I attempt go to the advanced tab and select to shutdown and then restart, I get an error message & the machine will not reboot. I then have to get up and go to the server room and push the power button. There are times noone is available at the office to do this when others work on say weekends or late nights and since I can ping the server, I'm assuming I can use command line switches to reboot.
I've seen so many variations, I don't know which one is what I need. All I want to do is RESTART the server, not shut it down.
I've seen these:
shutdown -r -f -t 30 -m \\ServerName
shutdown /r /m \\ServerName
psshutdown \\<PCname> -f -r
I'm thinking it's something closer to this shutdown /r /m \\ServerName but have no idea what the /m switch means.