Command Line Shutdown of Windows 2003 Server on the Internet

Posted on 2011-04-24
Last Modified: 2012-05-11
Hi All,

Does anyone have the command line syntax for remote shutdown and restart of a Win2003 server machine over the internet. (if one has the correct credentials of course).

Note the key words "Over the internet". The PC I am using is not networked to the Win2003 Server so I am not asking about a restart over LAN using CMD prompt (there is lots of stuff on that on google). The Win2003 server is on a public domain and has remote desktop access enabled. I have been able to do this many moons ago and can't find the syntax for using the CMD line.

Many thanks

Question by:JenebyM
    LVL 23

    Accepted Solution

    If you're able to remote desktop to this server (since it is enabled) over the Internet and then I would initiate a remote desktop session and then run this from the command line:

    shutdown -r -f -t 0

    Author Comment

    The Win2003 machine is running but access using rdp brings up a black screen because we have a program that was running in a perpetual loop that has hogged all the memory.

    The reason I am trying shut down is so that I can release memory and access using rdp normally.

    Although rdp is active I cant run any programs remotely until the server is rebooted.
    LVL 17

    Assisted Solution

    by:Kent Dyer
    While the shutdown works great locally or on the LAN..  I think you want to use Psshutdown..



    Author Comment


    Thanks for the reply. I am looking for a solution that uses command line and not installed software or any middleware (for reasons that are internal and I would rather not bore you with).


    You gave me an idea. Although the desktop is black when I use rdp (for reasons we know). I used --->> options -->> programs -->> cmd.exe on program path/file name. This started the cmd.exe on the server machine right on top of the black/blank desktop and I was able to the user shutdown /r /m \\name

    The system has restarted and I have accessed the server normally to fix the memory hungry process.

    Points shared proportionately.

    Author Closing Comment


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Some time ago I was asked to set up a web portal PC to put at our entrance. When customers arrive, they could see a webpage 'promoting' our company. So I tried to set up a windows 7 PC as a kiosk PC.......... I will spare you all the annoyances I…
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now