How to restart RDP without rebooting windows

WARNING: Test this process before you try it on an production system, to make sure you like the results and have the process down.

Problem:

RDP has stopped working but your server still work just users can’t connect to modify applications

The most common fix is to reboot windows, because “Remote Desktop Services” aka TermService can’t be restarted at least thats the case on 2003 as the option is grayed out. This will also create an outage just for a remote control issue and thats not always desirable.

The fix: (remotely)

from command line

  1. tasklist /s \\servername /svc /fi “imagename eq svchost.exe” (locate PID for TermService)
  2. taskkill /s \\servername /pid xxxx (may need /f to force, UAC might give problems as well)
  3. sc \\servername start TermService

The Fix: (local, using remote admin card/other remote control software/other remote command line)

From command line

  1. tasklist /svc /fi “imagename eq svchost.exe” (locate PID for TermService)
  2. taskkill /pid xxxx (may need /f to force, UAC might give problems as well)
  3. sc \\servername start TermService

more helpful RDP troubleshooting

http://support.microsoft.com/kb/2477176

Advertisements

9 Responses to How to restart RDP without rebooting windows

  1. Lloyd says:

    Just wanted to mention that using taskkill didn’t work for me, even with the force option (Access denied). PsKill was about to kill it just fine though.

  2. eddyragam says:

    Muchas gracias me ayudó mucho!

  3. Justin says:

    Great, thanks a lot!

  4. Pingback: Confluence: IT - Operations

  5. nico says:

    Error: Argumento u opción no válido – “eq”.
    Escriba “TASKLIST /?” para su uso.

    Didn’t work for me.. Windows 2012 R2 STD.

  6. Bart says:

    tasklist /s “\\WIN2715VM” /svc /fi “services eq Termservice” Is nice.

  7. Poindexter.Json says:

    Thanks for the info! I also made a PowerShell function that restarts TermService as well as “Remote Desktop Services UserMode Port Redirector (UmRdpService)” which is a dependent service of TermService.

    https://gallery.technet.microsoft.com/Restart-RDP-Related-7be31c39

  8. Richard Farias says:

    Olá pessoal, excelente artigo.
    Uma forma de melhorar esta pesquisa é simplesmente usar o nome do serviço, ficando algo como:

    tasklist /svc /fi “SERVICES eq TermService”

    Dessa forma, o único que irá aparecer no resultado será exatamente o serviço desejado.

    Obrigado Galera!

  9. Or just
    net stop TermService
    press Y
    net start TermService

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: