CmdID / PowerShell / Cmdlets / Invoke
Invoke-ADLicense
Performs Active Directory-based licensing operations. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-ActivateForestRequests forest activation by depositing an offline activation confirmation through the software licensing service.-ActivateOnlineRequests online Active Directory-based activation through the software licensing service.-ActivationObjectNameSpecifies the name of the activation object for online or forest activation.-AsJobRuns the command as a background job.-ConfirmationIDSpecifies the offline activation confirmation ID.-DeleteActivationObjectsSpecifies an activation object to delete.-ProductKeySpecifies the product key for online or forest activation.