How to activate the RDS license with this Get-WmiObject Win32_TSLicenseKeyPack using powershell

Rajkumar R 0 Reputation points
2023-01-29T02:53:58.07+00:00

I tried many without GUI but no luck. Like I’m having Licensed Server ID and Client access license keys which I’m using to activate my rds per user type of license activation. Below are the steps I’m followed for manual activation with these keys:

  1. From RDS License manager, right-click “Activate License” and select connection method as “Web-Browser” and then entering License server ID key and clicking next to activate license
  2. next window it asking to enter license for client Access, so entering license for Client Access License.
  3. Then it completed the activation. Final is making configuration, from RDS license manager, right the host and click “Review Configuration” and need to allow to Active group to add this computer is final settings i made.

I tried from this, but unable to get the solution
https://learn.microsoft.com/en-us/windows/win32/termserv/win32-tslicensekeypack

Could you please suggest any other way to automate this process using PowerShell?

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,391 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,209 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,266 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karlie Weng 14,721 Reputation points Microsoft Vendor
    2023-01-30T02:03:18.5266667+00:00

    Hello @Rajkumar R

    From the GUI, you will need first activate RDS license server then install RDS CALS.

    Please check the Microsoft official document:

    Activate the Remote Desktop Services license server | Microsoft Learn

    Install RDS client access licenses | Microsoft Learn

    User's image

    If you are using ‘Web-Browser’ to activate your server, which means your license server does not have internet. You may try other connection method, if this one doesn’t work.

    User's image

    After active server then we can install RDS CAL

    User's image

    This article introduces some  PowerShell script to install RDS CAL:

    How to Install and Activate the RDS Licensing Role and CALs on Windows Server 2019/2016? | Windows OS Hub (woshub.com)

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best regards

    Karlie

    0 comments No comments