@Echo Off
Title 2012msh & Color 0B
cd %systemroot%\system32
call :IsAdmin
cscript slmgr.vbs /rilc
cscript slmgr.vbs /upk >nul 2>&1
cscript slmgr.vbs /ckms >nul 2>&1
cscript slmgr.vbs /cpky >nul 2>&1
cscript slmgr.vbs /ipk N979K-XWD77-YW3GB-HBGH6-D32MH
sc config LicenseManager start= auto & net start LicenseManager
sc config wuauserv start= auto & net start wuauserv
clipup -v -o -altto c:\
Pause & Exit
:IsAdmin
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
Cls & Echo You must have administrator rights to continue ...
Pause & Exit
)
Cls