Created
May 24, 2018 23:19
-
-
Save danaugustin/4e47134ffa824e991e28f37432fc98f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$key=(Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey | |
iex "cscript /b C:\windows\system32\slmgr.vbs /upk" | |
iex "cscript /b C:\windows\system32\slmgr.vbs /ipk $key" | |
iex "cscript /b C:\windows\system32\slmgr.vbs /ato" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment