Forum Discussion
AB21805
Nov 22, 2021Bronze Contributor
Deploying windows activation key
Hi all,
I have enrolled devices into intune and I am getting the following message:
Is it possible to deploy the product key via intune ?
- hi,
Looks like the devices didnt had the proper license applied before enrolling (pro requirement)
You can upgrade the license to enterprise with a device configuration policy
If you just want to apply the license... why not using PowerShell? You can push a powershell script with the product key... But I am not aware about your licensing program and if it's okay to license it this way
slmgr /ipk "productkey"
- VinkiejjCopper Contributor
i activate them with powershell, wrap the script up in a Intunewin file and deployed trough an win32 app.
- VinkiejjCopper ContributorThis is wat i use:
$computer = gc env:computername
$key = "ENTER KEY HERE"
$service = get-wmiObject -query "select * from SoftwareLicensingService" -computername $computer
$service.InstallProductKey($key)
$service.RefreshLicenseStatus()
- hi,
Looks like the devices didnt had the proper license applied before enrolling (pro requirement)
You can upgrade the license to enterprise with a device configuration policy
If you just want to apply the license... why not using PowerShell? You can push a powershell script with the product key... But I am not aware about your licensing program and if it's okay to license it this way
slmgr /ipk "productkey"