Tuesday, 26 July 2016

How to activate Windows 8/10 automatically



You can use the following cmd script to get the OEM key which has been programmed into the BIOS by the manufacturer and then activate Windows with it automatically. Of course, the OS must match the OEM key (e.g. Windows Home OS <> Windows Home Product Key).

AutoActivate.cmd  (run as admin)

@echo off
pushd "%~dp0"
set PKEY=
get_win8key.exe > WINKEY.txt
set /p PKEY=<WINKEY.txt
if not "%PKEY%"=="" (
echo Activating using key %PKEY%
cscript //NoLogo %systemroot%\system32\slmgr.vbs /ipk %PKEY% > act.log
cscript //NoLogo %systemroot%\system32\slmgr.vbs /ato >> act.log
type act.log
)
popd

get_win8key.exe can be obtained from here. It also works on Windows 10 systems.

P.S. after downloading get_win8key.exe - right-click on the file - Properties - and tick UnBlock. Otherwise Windows Powershell may refuse to run it.