Change RDP Port Windows Server

Connect to your server via Remote Desktop
Click simultaneously on the Windows logo + R to open the “Run” dialog and execute the “cmd” command
Open the registry editor by typing the “regedit” command
Search for this registry subkey:


Double-click or right-click on the “PortNumber” registry subkey, select the decimal base and type the port number of your choice (the default port is 3389, in this example, we selected port 3390). Click on “Ok” to save your selection.

IMPORTANT: Make sure that remote access to your server through the new port is authorized in your Windows firewall before executing the next step. Add a new Firewall Port Incoming rule allowing the port number.

Exit the registry editor
Restart your server

After the reboot, specify the Remote Desktop port number.


Installing and Enabling IIS and FTP on Windows Server 2012

To install the role using PowerShell, use these steps. PowerShell must be run using Administrator rights. Installing IIS and all subfeatures can be run in 2 commands:

Import-module servermanager

Add-windowsfeature web-server –includeallsubfeature


To install the role using Server Manager, follow these steps:

Read moreInstalling and Enabling IIS and FTP on Windows Server 2012

RDP Logs

You should be able to check the Event Viewer and go through the Security section to see the Audit Successes and Failures for logins. If you are on the general tab, there is a box at the top (which you have to scroll through) that would say why it failed if it was a Failure and lower in that box it would say the source network address and the workstation name that was connecting.


To view the RDP logins:

Event Viewer > Applications and Services logs > Microsoft > Windows > TerminalServices-RemoteConnectionManager > Operational