PowerShell commands to add RDP role and licensing

How can I activate RDS role and licensing with Powershell ?

Hi,

You can run these following commands.

To Add:

Add-WindowsFeature –Name RDS-Licensing

Add-WindowsFeature –Name RDS-RD-Server –IncludeAllSubFeature -Restart

To Remove:

remove-WindowsFeature –Name RDS-Licensing

remove-WindowsFeature –Name RDS-RD-Server

2 Likes

You need to run theses PowerShell commands as Administrator