CmdID / PowerShell / Cmdlets / Get
Get-ADLicenseInfo
Gets Active Directory-based activation license information. Windows Server PowerShell reference
From the Windows Server PowerShell reference 3 parameters Its page in the reference
Parameters
-ActivationObjectsEnumerates the activation objects in the CN=Activation Objects,CN=Microsoft SPP container in the Active Directory configuration naming context.-AsJobRuns the command as a background job when you access the module through an implicit-remoting wrapper.-ProductKeySpecifies the product key that the cmdlet uses to generate an offline forest installation ID.