PowerShell Enable Remote Desktop

Posted on

On Windows Server Product WinRM or Windows Remote Management is enabled by default. But RDP (Remote Desktop) is disabled. On the system operation of workstation neither is enabled by default. Therefore if you want to solve that case, you have to enable WinRM (Windows Remote Management) on the workstations. PowerShell enable Remote Desktop (RDP). Well, in this time we will explain you about enable Remote Desktop using PowerShell. Actually there are the methods how to remotely enable and disable RDP (Remote Desktop). It means that it is not just use PowerShell to remotely enable and disable RDP (Remote Desktop).

There are the methods how to remotely enable Remote Desktop using PowerShell. Enable RDP (Remote Desktop) by using PowerShell, it will not configure the Windows Firewall with the appropriate ports to allow RDP connections. Its methods can you see in the text below.

This is the first method to enable RDP (Remote Desktop) with use the PowerShell.

  1. Please launch PowerShell as Administrator.
  2. Then type the command and create a script block and use the Invoke-Command cmdlet.

This is the first method to disable RDP (Remote Desktop) with use the PowerShell.

  1. Please launch PowerShell as Administrator.
  2. Then type the command.

Besides the methods above, there is another method to enable RDP (Remote Desktop) with use the PowerShell. See another method in the text below.

This is the second method to enable RDP (Remote Desktop) with use the PowerShell.

  1. Please launch PowerShell as Administrator.
  2. After that create a PS Session with the desired target computer.
  3. Then please type the command after the possession is established.

This is the second method to disable RDP (Remote Desktop) with use the PowerShell.

  1. Please launch PowerShell as Administrator.
  2. Create a PS Session with the desired target computer.
  3. Then please type the command after the possession is established.

In this time, we will explain you the method to enable RDP (Remote Desktop) with Command Prompt. Enable RDP (Remote Desktop) by using the Command Prompt, it will not configure the Windows Firewall with the appropriate ports to allow RDP connections.

This is the method to enable RDP (Remote Desktop) with Command Prompt.

  1. Please launch the Command Prompt as Administrator.
  2. Then please type the command

This is the method to disable RDP (Remote Desktop) with Command Prompt.

  1. Please launch the Command Prompt as Administrator.
  2. Then please type the command.

The last we will also explain you the method to enable RDP (Remote Desktop) with Group Policy. Enable RDP (Remote Desktop) by using GPO (Group Policy), it will configure the Windows Firewall with the appropriate ports to allow RDP connections.

This is the method to enable RDP (Remote Desktop) with Group Policy.

  1. Please launch the Group Policy Management Console (GPMC)
  2. Either edit an existing Group Policy Object (GPO) or create a new GPO.
  3. Then navigate to the GPO node.
  4. Please double click “Allow users to connect remotely by using Remote Desktop Services” in the Settings pane.
  5. Please select the Enable Radial button then select OK.
  6. The last close the GPO editor and link the GPO to the appropriate Organizational Unit.

Leave a Reply

Your email address will not be published. Required fields are marked *