Link to home
Start Free TrialLog in
Avatar of JenebyM
JenebyM

asked on

Command Line Shutdown of Windows 2003 Server on the Internet

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).

Important:
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

Thanks
ASKER CERTIFIED SOLUTION
Avatar of yobri
yobri
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JenebyM
JenebyM

ASKER

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.
SOLUTION
Avatar of Kent Dyer
Kent Dyer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JenebyM

ASKER

Kdyer:

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).

Yobri:

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.
 
Avatar of JenebyM

ASKER

None