+ Post New Thread
Results 1 to 14 of 14
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 ...
  1. #1
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,828
    Thank Post
    288
    Thanked 112 Times in 93 Posts
    Rep Power
    39

    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!

  2. #2

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,466
    Thank Post
    524
    Thanked 1,993 Times in 932 Posts
    Blog Entries
    23
    Rep Power
    575
    Can't you do a ACPI power down i.e. press the on\off button and see if that triggers Windows shutdown routine?

  3. #3

    Join Date
    Mar 2007
    Posts
    1,669
    Thank Post
    72
    Thanked 249 Times in 199 Posts
    Rep Power
    64
    open dos prompt, do shutdown /? will give you the syntax.

  4. #4
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,723
    Thank Post
    206
    Thanked 254 Times in 206 Posts
    Rep Power
    65
    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.

  5. #5

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,656
    Thank Post
    324
    Thanked 506 Times in 474 Posts
    Rep Power
    177
    shutdown -m \\"pc name" /r

    Is other option, but all the above work just as well really :P

    Steve

  6. #6
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,828
    Thank Post
    288
    Thanked 112 Times in 93 Posts
    Rep Power
    39
    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.

  7. #7

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    240
    If that doesn't work, try a /f trigger too on the end

  8. #8
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,828
    Thank Post
    288
    Thanked 112 Times in 93 Posts
    Rep Power
    39
    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!

  9. #9
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,723
    Thank Post
    206
    Thanked 254 Times in 206 Posts
    Rep Power
    65
    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)

  10. #10
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,828
    Thank Post
    288
    Thanked 112 Times in 93 Posts
    Rep Power
    39
    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!

  11. #11
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,828
    Thank Post
    288
    Thanked 112 Times in 93 Posts
    Rep Power
    39
    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.

  12. #12
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    22
    for future reference,

    if shutdown.exe doesn't work you can use pskill.exe to kill winlogon.exe

  13. #13

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,216
    Thank Post
    2,766
    Thanked 935 Times in 875 Posts
    Rep Power
    343
    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

  14. Thanks to mac_shinobi from:

    TechSupp (6th April 2011)

  15. #14
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    22
    Quote Originally Posted by mac_shinobi View Post
    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
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. esx command line help
    By ful56_uk in forum Thin Client and Virtual Machines
    Replies: 6
    Last Post: 17th February 2010, 05:04 PM
  2. Windows Server ASR from Command Line
    By dcwhitworth in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 9th January 2009, 02:49 PM
  3. NTBackup - Command Line
    By dave.81 in forum Windows
    Replies: 2
    Last Post: 7th May 2008, 09:46 AM
  4. Office Command Line ID
    By alan-d in forum How do you do....it?
    Replies: 4
    Last Post: 23rd April 2008, 10:51 AM
  5. Command LIne
    By wesleyw in forum Windows
    Replies: 4
    Last Post: 12th October 2006, 11:10 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •