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 ?
- Nov 23, 2021hi,
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"
beniamin
Copper Contributor
Hi, Vinkiejj! I am struggling to activate windows with a powershell script, because I don't know where can I find such a script. Is there a public script that I can use?
Thank you
Aug 25, 2022
$(Get-WmiObject SoftwareLicensingService).OA3xOriginalProductKey | foreach{ if ( $null -ne $_ ) { Write-Host "Installing"$_;changepk.exe /Productkey $_ } else { Write-Host "No key present" } }
Something like this?
Something like this?