Command Line Shutdown of Windows 2003 Server on the Internet

Posted on 2011-04-24
Medium Priority
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
  • 3
LVL 23

Accepted Solution

Brian Gee earned 1200 total points
ID: 35457854
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

ID: 35457895
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
Kent Dyer earned 300 total points
ID: 35458008
While the shutdown works great locally or on the LAN..  I think you want to use Psshutdown..




Author Comment

ID: 35458057

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

ID: 35458060

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

621 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