Changing the RDP port in Windows Server 2012, 2016, 2019, 2022

This manual covers the procedure for changing the RDP port in Windows Server 2012. Please note that all further procedures are designed to change the RDP port, which will lead to the disconnection of the current server connection; therefore we recommend using other options for connecting to the server (e.g. through the Web console in your hosting account). In order to accomplish this task, you need to edit the registry of the operating system. The registry may be edited using the relevant program editor.

Click Start and type cmd in the Search field.

windows server 2012 comand prompt

In the black console window that appears, type in and execute the regedit command.

windows server regedit

In the registry editor, it is necessary to find the RDP-Tcp partition, which can be done using following this path

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp:

windows server regedit port number

It is then necessary to find and open the PortNumber element (as on the figure above) in it.

Next, switch to the Decimal input format and specify a new port for the RDP connection:

windows server edit port number

When selecting a new port for connection, remember that there are several port categories broken down by their numbers:

  • Numbers from 0 to 10213 are known ports that are assigned and controlled by Internet Assigned Numbers Authority (IANA).
    They are normally used by various OS system applications.
  • Ports from 1024 to 49151 are registered ports designated by IANA. They can be used to solve particular tasks.
  • Port numbers from 49152 to 65535 are dynamic (private) ports that may be used by any applications or processes to solve work tasks.

Port rule

After changing a port for remote connection, it is necessary to open it in the firewall settings, otherwise all attempts of external connection will be blocked. To do this, it is necessary to use the Windows Firewall with Advanced Security snap-in. You can open it by going to the menu: Server manager —> Tools:

windows server  manager tools

It is necessary to select “Inbound Rules “, right click on this item and select “New rule“:

windows server  firewall inband rules add new

We will create a rule for the port:

windows server  firewall inband rules type

It is necessary to select protocol type (TCP or UDP) and specify the port that we set when editing the registry (in our example: TCP protocol, 60000 port number):

windows server new port input

The next step is to select the type of action that describes the rule. In our case, it is necessary to enable the connection using the specified port.

windows server  allow connection

The next step is to specify the scope of the rule – it depends on where the server is running (in a workgroup, domain or private access):

windows server  firewall rule profile

Then it is necessary to select a name for the rule (it is recommended to select the name in such a way that the rule can then be easily recognized among others):

windows server  firewall naming and finish

After that the server has to be rebooted.

Now the new new port needs to be used to connect to the server via RDP.

How to Erase a Recovery Partition in Windows

If you’ve ever looked at your hard drive or SSD in Windows Disk Manager and seen a partition with the description “Healthy (Recovery Partition),” that’s your recovery partition. Windows or your computer manufacturer (or both) puts these partitions there so you can restore your system to its original state in case of emergency. However, if you already have a full backup image on an external drive, which is better, you might want to delete the recovery partition to save space.

Unfortunately, Windows won’t let you delete the recovery partition in Disk Manager. When you try right clicking on it, Delete Volume isn’t an option as it is on other partitions. This limitation can be particularly annoying when you have a larger disk and you want to combine too partitions, but they are separated by a recovery partition. Whether you want to combine partitions or just save some space, here’s how to delete a recovery partition in Windows 10 (instructions also work for 7 or 8).

1. Type Cmd into the Windows search box. A list of results appears.

2. Right click on Command Prompt and select “Run as Administrator.”

3. Type “diskpart” at the command prompt and hit Enter.

4. Type “list disk” and hit Enter. A list of physical drives appears. If you’re doing this on a laptop, you probably only have one drive.

5. Type “select disk” and the number of the disk. The first (or only) disk is number 0. Hit Enter.

6. Type “list partition.” A list of partitions appears.

7. Type “selection partition” and the number of the recovery partition you wish to delete. There may be more than one.

8. Type “delete partition override.”

That will erase the partition. However, you should make sure you have a full system backup on an external drive so you can do a restore if you ever need to.

credssp error solution

Follow the steps below to resolve this error.

  1. Windows+R Click the keys
  2. gpedit.msc type and click the OK button.
  3. Click to Administrative Templates and click to System

  4. Click to Credentials Delegation

  5. Click to Encryption Oracle Remediation

  6. Click to Enabled and Protection Level select to Vulnerable