Windows Server 2000/2003 Thread, How to shut down a server by command line? in Technical; One of my servers has misbehaved and is not printing or allowing me to remore desktop in to it, although ...
5th April 2011, 12:13 PM #1
How to shut down a server by command line?
One of my servers has misbehaved and is not printing or allowing me to remore desktop in to it, although I can browse its files and folders and ping it. Can I reboot it remotely from a command prompt as cant get out to it (its in another school) just yet and dont really want to use the alternative of getting someone to press and hold the power button to force it off!
5th April 2011, 12:18 PM #2
Can't you do a ACPI power down i.e. press the on\off button and see if that triggers Windows shutdown routine?
5th April 2011, 12:19 PM #3
open dos prompt, do shutdown /? will give you the syntax.
5th April 2011, 12:23 PM #4
shutdown -i in the run command. then pick server... If you have an apc ups with webinterface you can tell the servers copy of apc to shutdown as well.
5th April 2011, 12:24 PM #5
shutdown -m \\"pc name" /r
Is other option, but all the above work just as well really :P
5th April 2011, 12:38 PM #6
Thanks for all the quick replies, looked at the shutdown -i but no computers appeared in the list (was doing it from the other main domain server), its the print/backup domain server thats playing up. Did shutdown /r /m \\servername just awaiting results of that.
5th April 2011, 12:51 PM #7
If that doesn't work, try a /f trigger too on the end
5th April 2011, 12:56 PM #8
Well it didnt reboot, just sat there allowing me to browse the files via My Computer! Anyway had a brainwave and used GenControl (vnc in the background) and ity connected to the server. Everything looked OK apart from Sophos had some error messages (used to those!), so just rebooted it from the menu as normal. Now awaiting to see if someone will check to see if my test print has appeared!
5th April 2011, 12:56 PM #9
with shutdown -i you can use the add button then type the servers name OR ipaddress. You could also try kicking it and holding the powerbutton in for ages. (this may destroy the server if actually attempted)
5th April 2011, 01:05 PM #10
That last option was tried earlier on this year! Thats why we bought the new domain controller server. Not printing is not a priority but logging on and getting to files is so we left the prinetrs and sphos and wsus on the old server for the moment. Anyway ist come back online and now remote desktops in to it so fingers crossed. Boy and I glad of this forum!
5th April 2011, 01:09 PM #11
Whooohooo! We have lift off, printing is back on line :-) Dont know what happend there, yet another mystery as nothing jumps out at me from the event viewer.
5th April 2011, 10:32 PM #12
for future reference,
if shutdown.exe doesn't work you can use pskill.exe to kill winlogon.exe
6th April 2011, 08:04 AM #13
psshutdown or psexec to launch a remote cmd on the server and then from there try the shutdown command which will run it locally on the server ?
WMIC OS Where Primary=TRUE Call Shutdown
Batch files - Shutdown and Reboot
Thanks to mac_shinobi from:
TechSupp (6th April 2011)
6th April 2011, 10:07 AM #14
i find quite often you can issue a shutdown, and it is in progress and you can't rdesktop the machine but the shutdown is waiting for you to click something on an app. you can't use the shutdown.exe option to cancel the shutdown, pskill.exe against winlogon.exe normally gets round this.
Originally Posted by mac_shinobi
By ful56_uk in forum Thin Client and Virtual Machines
Last Post: 17th February 2010, 05:04 PM
By dcwhitworth in forum Windows Server 2000/2003
Last Post: 9th January 2009, 02:49 PM
By dave.81 in forum Windows
Last Post: 7th May 2008, 09:46 AM
By alan-d in forum How do you do....it?
Last Post: 23rd April 2008, 10:51 AM
By wesleyw in forum Windows
Last Post: 12th October 2006, 11:10 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)