Set " _mO15c =Detected Office 2013 C2R Retail could not be converted to Volume " Set " _mO16c =Detected Office 2016 C2R Retail could not be converted to Volume " Set " _mO19c =Detected Office 2019 C2R Retail could not be converted to Volume " Set " _mO21c =Detected Office 2021 C2R Retail could not be converted to Volume " Set " _mO15a =Detected Office 2013 C2R Retail is activated " Set " _mO16a =Detected Office 2016 C2R Retail is activated " Set " _mO19a =Detected Office 2019 C2R Retail is activated " Set " _mO21a =Detected Office 2021 C2R Retail is activated " If exist " %PUBLIC%\Desktop\desktop.ini " set " _dsk = %PUBLIC%\Desktop " If " %_work:~ 0, 2% " = "\\ " set _UNC = 1įor /f "skip=2 tokens=2* " %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders " /v Desktop') do call set " _dsk = %%b " Reg query HKU\S-1-5-19 1 > nul 2 > nul || goto : E_Admin If /i " %PROCESSOR_ARCHITECTURE% " = "arm64 " set " xBit =x86 " &set "xOS=A64 " &set "_orig= %o_arm% " Set " Path = %SysPath% %SystemRoot% %SysPath%\Wbem %SysPath%\WindowsPowerShell\v1.0\ " If exist " %SystemRoot%\Sysnative\reg.exe " (set "SysPath= %SystemRoot%\Sysnative ") If %Logger% EQU 1 set _run = " %~dpn0_Silent.log " If %External% EQU 1 if " %KMS_IP% " = " %_uIP% " set External = 0
) else if /i " %%A " = "/c " (set AutoR2V= 0 ) else if /i " %%A " = "/w " (set ActOffice=0 &set ActWindows= 1 ) else if /i " %%A " = "/o " (set ActOffice=1 &set ActWindows= 0 ) else if /i " %%A " = "/e " (set External= 1 ) else if /i " %%A " = "/l " (set Logger= 1 ) else if /i " %%A " = "/s " (set Silent= 1 ) else if /i " %%A " = "/u " (set Unattend= 1 If " %~1 " = " " set " _args = " &goto : NoProgArgs Start %SystemRoot%\SysArm32\cmd.exe /c " " !_cmdf! " %* " If exist " %SystemRoot%\SysArm32\cmd.exe " if /i %PROCESSOR_ARCHITECTURE% =AMD64 (
Start %SystemRoot%\Sysnative\cmd.exe /c " " !_cmdf! " %* " If exist " %SystemRoot%\Sysnative\cmd.exe " ( :: # NORMALLY THERE IS NO NEED TO CHANGE ANYTHING BELOW THIS COMMENT # :: instead, make sure the exe pack or the other caller script are already 64-bit (圆4 / ARM64) process :: in that case, be advised not to proceed your pack or caller script depending on KMS_VL_ALL script(s) closure :: KMS_VL_ALL script(s) will close then relaunch itself using 64-bit (圆4 / ARM64) cmd.exe :: if the exe pack or the caller script is running as 32-bit (x86) process :: when you bundle KMS_VL_ALL script(s) inside self-extracting program or run it from another command script
#KMS CLIENT EMULATOR V1.0 WINDOWS#
:: Notice for advanced users on Windows 64-bit (圆4 / ARM64):
#KMS CLIENT EMULATOR V1.0 WINDOWS 8.1#
:: change Hardware Hash for KMS emulator server (only affect Windows 8.1 and 10) :: change KMS reattempt schedule for failed activation or unactivated, range in minutes: from 15 to 43200 :: change KMS auto renewal schedule, range in minutes: from 15 to 43200 :: change to 1 to redirect output to a text file, works only with Silent=1 :: change to 0 to revert Windows 10/11 KMS38 to normal KMS :: change to 0 to turn OFF auto conversion for Office C2R Retail to Volume :: change to 0 to turn OFF Windows or Office activation processing via the script
:: change External to 1 and set KMS_IP address to activate via external KMS server