Activate Run the following command in Powershell ISE as an admin $GetDigitalLicence = (Get-WmiObject -query 'select * from SoftwareLicensingService’).OA3xOriginalProductKey cscript c:\windows\system32\slmgr.vbs -ipk $GetDigitalLicence