@echo off
chcp 65001
color 4f
cd\
cls
title BIOS OEM Windows 10 Activation
echo.
echo BIOS OEM Windows 10 Activation
echo.
For /f "tokens=2 delims=," %%a in ('wmic path SoftwareLicensingService get OA3xOriginalProductKey^,VLRenewalInterval /value /format:csv') do set key=%%a
echo.
echo -----------------------------------------------------
echo Windows BIOS OEM : %key%
echo -----------------------------------------------------
echo.
echo.
echo.
@echo off
c:
cd %systemroot%\system32
echo.
slmgr /upk
echo BIOS OEM Key ... Delete ... !!!
echo.
slmgr /ipk %key%
echo BIOS OEM Key ... Registering ... !!!
echo.
slmgr /ato
echo BIOS OEM Windows 10 Activation ... OK ... !!!
echo.
pause
exit