Enable RDP with Powershell 1

Although the Remote Management is enabled by default starting with Windows Server 2012, the RDP access isn’t. To enable RDP with Powershell, you have two steps to perform:

  1. Enable the RDP Access
  2. Enable the inbound firewall rules

Here’s the code:

The second line allows you to specify if you want to use NLA or not.


Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

One thought on “Enable RDP with Powershell