You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Echo Off
Set "pkey="
For /F "Tokens=2 Delims==" %%A In ('
WMIC Path SoftwareLicensingService Get OA3xOriginalProductKey /Value
') Do Set "pkey=%%A"
If Not Defined pkey Exit /B
cscript C:\Windows\system32\slmgr.vbs /ipk %pkey%
About
Collection of Batch and Powershell scripts for various Windows system administration tasks.