Get-WmiObject -Class Win32_TerminalServiceSetting -Namespace "root\CIMV2\TerminalServices" Use code with caution. Copied to clipboard
Instead, what you typically need to find is:
If you are using , you do not purchase traditional CALs separately. how to find rds license key
Under the tab, you can often see the "License Program" (like Open License or Retail) used to activate it.
Some newer agreements use the Microsoft Customer Agreement (MCA): Some newer agreements use the Microsoft Customer Agreement
If you still have access to the documentation that came with your RDS purchase, you may be able to find your license key there. Check the following:
As established, you cannot recover the original product key from the server itself. However, the server holds crucial information about the licenses that have been installed. This data can be invaluable for verification and troubleshooting. This data can be invaluable for verification and
(Volume Open License) Agreement Number (Select, Enterprise, or School agreements) Retail Product Key (25-digit code)
To see installed CALs and their agreement numbers, use the command: Get-WmiObject -Namespace "Root\CIMV2" -Class Win32_RemoteDesktopLicenseKeyPack Activating the License Server with Your Found Key
If you need to verify which licensing server your session hosts are pointing to (which helps you find where the keys live), you can check the local registry. Press Win + R , type regedit , and hit Enter.
If you purchased RDS CALs through a retail vendor or a Cloud Solution Provider (CSP), the key was likely delivered digitally.