Sunday, February 05, 2023

easier way to handle RDP failure on Azure burstable VMs

Since leaving the Remote Desktop Protocol (RDP) port 3389 open is not recommended, I had tried to move one of the teams working on a couple of remote Windows servers on Azure B-series VMs to use ssh tunnels instead of directly RDP into the server. They could not get the tunnels to work with the reg file I sent them - probably because the paths were different. A workaround would be to just stop the remote desktop service when not in use, and start the service only when they need to use it. So, created a stoprdp.bat file, containing
net stop UmRdpService
net stop termservice

A similar restartrdp.bat file has
net stop UmRdpService
net stop termservice
net start termservice
net start UmRdpService

This is another easier way of doing the same thing described in my earlier post at https://hnsws.blogspot.com/2021/05/restarting-remote-desktop-via-ssh-or.html

No comments:

Post a Comment