How do I restart Remote Desktop service remotely?

soulo50

Member
Joined
Sep 15, 2003
Messages
14
Reaction score
0
Location
.
I access my Windows XP desktop machine by laptop at the office or from home. From time to time the performance degrades to a point where it becomes unusable. I usually then call somebody to reboot my machine, then everything is fine.

I can Telnet to my desktop. Is there any way to restart the terminal services remotely?

Thanks.
 
Here’s a simple way from within VFP (or similarly from VBScript or Jscript):

x=CREATEOBJECT("shell.application")

x.ShutdownWindows()

This brings up the Shutdown Windows dialog from which one can choose to Restart, Stand By, Shut Down, etc.

You can start RD simply from the VFP command window:

!/n mstsc

Or from the WinXP start menu:

Windows_Key+R mstsc
 
oh man really easy way.

Start > Run > shutdown -r

If you want to stop it (you have 30 secs)
Start > Run > shutdown -a
 
Last edited:
Isn't it possible to just restart the remote desktop engine?

Reason why I'm asking is, being a Linux/UNIX user myself, you generally don't bounce the whole box when a service gets bogged down! Just go to the /etc/rc.d directory, and bounce the bogged down service! Easy! :D
 
Yep, exactly! I'd like to restart the service, if at all possible.
 
Restarting remote desktop

If you are connected to the box, e.g. via telnet or ssh (I know you mentioned telnet above), then run the following in a DOS box:

net start

(identify the remote desktop service - we'll call it Remote Desktop, since I don't know what it would be, having not used remote desktop in ages)

net stop "Remote Desktop"

net start "Remote Desktop"

If you want to restart it remotely, without being connected via telnet / ssh, download pstools. You then do the same, but will need to provide an admin account and password.
 
Remote Desktop uses the "Terminal Services" service which cannot be stopped/started/restarted.

I've tried to find a solution to this but no such luck.
 
thewanted_ said:
Remote Desktop uses the "Terminal Services" service which cannot be stopped/started/restarted.

I've tried to find a solution to this but no such luck.

Then maybe switch to VNC?
 
thewanted_ said:
Remote Desktop uses the "Terminal Services" service which cannot be stopped/started/restarted.

I've tried to find a solution to this but no such luck.


Start > Run > shutdown -r (forced shutdown -try it :D) (-f also works)

If you want to stop it (you have 30 secs)
Start > Run > shutdown -a
 
I would also say that you should try VNC and see if that does not work better for you.
 
Are you people mad? VNC is the biggest piece of **** I've ever had the displeasure of working with.

It doesn't scale the desktop to the size you want. It doesn't refresh the screen properly/often enough. It sucks over slow connections.

Blah blah blah.

Use mstsc /console if you want Remote Desktop to work the same way as VNC.
 
Person said:
Start > Run > shutdown -r (forced shutdown -try it :D) (-f also works)

If you want to stop it (you have 30 secs)
Start > Run > shutdown -a

I know how to shutdown a machine.... but how exactly does this restart the Remote Desktop/Terminal Services service?

Excuse my ignorance.
 
It’s not obvious how to reboot the remote machine. The WinXP start menu Shut down option says “Disconnect” rather than “Shut down” and Ctrl-Alt-Del is intercepted by the local machine. (Windows Server 2003 has Disconnect as an option on the Shutdown menu.)

when you're connected to the remote machine, from the command-line ("cmd"), just do:

- "shutdown" to shutdown
- "shutdown -r" to reboot
- "shutdown -i" to get a GUI
- "shutdown -l" to logoff
- "shutdown -f" to force shutdown
 
The original question was how to restart the Remote Desktop service, not how to shutdown the machine.
 
From : http://www.governmentsecurity.org/archive/t15125.html ... near the bottom.

Just kill the instance of svchost that owns port 3389 and restart the terminal service afterwards.
you should be able to logon to you session again and noone needs to reset the server for you.
or use radmin it does not have this kind of problems and offers both remote desktop and telnet and is sometimes faster on slow connections if you chose the right settings.

So ... anybody have a tool that can tell us which process is attached to a port ?
 
Top
Sign up to the MyBroadband newsletter
X