0

I'm automating RDS license activation through PowerShell task in Azure release pipeline for multiple vms in deployment groups. Currently activating manual by accessing the rds license manager and right click in the hostname and activate server and choosing connection method as "Web Browser" and providing License key and then it activating and post install wizard to enter client key (CAL: already provisioned from rds license team with requested quantity of users). Once it completed successfully, again right click on the hostname of rds licnese manager to review configuration and Clicking Add to group to join the AD terminal service group to complete the activity.

Currently I'm not able to find the right way to automate this process using powershell. Note: I'm having license key and client key(CAL) for vm details which required to activate the license manual.

Tried some script to check in the vm but it does not work:

Import-Module RemoteDesktop

$server = Get-WmiObject -Class Win32_OperatingSystem
Activate-RDLicenseServer -ActivationMethod Web -ProductKey <license key>

Install-RDS CALs  -LicenseKey "" 

Get-RDLicenseConfiguration

this script does not work can I get the right way to activate the license. Getting error like RDS doesn't exist on the machine.

Note: Installed all required RDS features and subfeatures of remotedesktop

Paolo
  • 21,270
  • 6
  • 38
  • 69
User100289
  • 21
  • 1

0 Answers0