I was connected to an rdp session which suddenly hung and disconnected me, not letting me reconnect anymore. I scoured the net and tried everything to no avail (sc, pskill, etc.), as Terminal Services was running, but for some reason was unresponsive to requests. This is how I got it to work again once I accessed it via vnc:
On the server:
- Open Windows explorer.
- Right-click on "This PC" and select properties.
- Click on remote settings and select the "Remote" tab.
- Select "Don't allow remote connections to this computer."
- Click on Apply.
- Select "Allow remote connections to this computer."
- Click on Apply and then OK.
A few answers I found mentioned that rebooting fixed the problem. I couldn't do this at the time, as I had users at work - I did reboot after they had left for the day, for good measure. As a side note, while this rdp non-sense was going on, everything was normal as far as my users was concerned (no one even knew that something was off).
I always install an alternative program to allow remote control of computers, even if I have RDP set up. TightVNC is a good option, or you can go with TeamViewer or a number of other programs used for this purpose.
Alex