profile for Gajendra D Ambi on Stack Exchange, a network of free, community-driven Q&A sites

Wednesday, May 20, 2015

RDP on your machines

So it is time for me to make a note of some things which i easily keep forgetting when i need them the most and this one is especially about RDP on standard or customized images.
First and foremost we will make sure we disable the firewall
so open your friendly powershell and shoot this line through it

#Disable Firewall
 Get-NetFirewallProfile | Set-NetFirewallProfile -Enabled False
#may be that is not enough for some non standard images so let us be safe and do this
netsh advfirewall set allprofiles state off
#let us enable rdp and make sure to unselect the sub option under allow remote
SystemPropertiesRemote


What if even after this circus we still do not have the RDP enabled?
Well then may be we are looking at a custom port being used for RDP. This is quite common for enterprises to change the default RDP port for security hardening. So let us see what that port is by going to
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
and select decimal to see the value in decimals.

If it is not the default port then you have 2 options
option 1: change it to the default port 3389 and exit the registry, reboot the system.
option 2: In your rdp client (ex: mremote) change the default rdp port to the one on the image.

No comments:

Post a Comment