abbodi1406 / kms_vl_all_aio Goto Github PK
View Code? Open in Web Editor NEWSmart Activation Script
License: GNU General Public License v3.0
Smart Activation Script
License: GNU General Public License v3.0
Im trying to get this toi run with Windows MDT Deployment .... is there any silent switches i can use to get thsi to automaticaly activate / install KMS?. because im struggling
The script works fine when I run it. But if I power cycle my computer then office will show the warning message again until the script is re-run. The .dll file is in my antivirus exclusions.
I am not sure how to debug this issue.
I did just notice that my license activates 2016 and 2019, but I only have the 2019 version installed.
0xC004E015
When I try to activate MS Office 2021 LTSC it gets stuck like the screenshot below:
After waiting for a few minutes, this appears:
No Antivirus is interfering with it I can confirm. My AV was also turned off and I tried this with two AV products. So that's not the issue.
The "SppExtComObjHook.dll" was not present in System32 as stated in the second screenshot.
To make the activation successful, I had to download the "SppExtComObjHook.dll" file from online, paste it into the System32 folder when it got stuck like the first screenshot. And then office got activated and the SppExtComObjHook.dll file was auto deleted after the process.
My system is Windows 11 Enterprise latest build 22000.613.
Everything was fine yesterday, today I have a non genuine notice popping up whenever i start office. Its still activated but warns me I might be a victim of piracy. Maybe one of the VL keys has been flagged
I used this activator to activate office 365 and be able to use my basic licenses to connect Excel and Word to my business cloud, with the application installed (the basic license does not allow having office installed on a pc) The new version of office 365 I have not been able to activate it with KMS ALL 45r version
Where or what is the link to download your latest KMS_VL_ALL-45u (09-Jan-2022)?
Thank you for your answare.
My best regards.
Seems like every other app changed from Office 2021 to LTSC but OneNote isn't activated. Any solution for that?
Also is there a way to keep Office Pro 2021 instead of LTSC? Asking this because LTSC isn't up to date with the latest retail version
After every Windows major update, the SppExtComObjHook.dll file is removed causing the office license to expire.
It has been happening on many pcs for over a year.
Any explanation or help?
Thanks
it says checksum error in the encrypted file
Hi, i tested your script and its working good, however my test server is not good at all (freezes while in RDP / disconnects me very often) and office 2021 keep yelling that this is not a genuine version despite of the things i changed like said in the readme . How to clean all this, or do you have a workarround to uninstall it completely ?
Since this morning Microsoft has started detecting the program as Trial version and says invalid license.
echo
(without an extension) in the current working directory, and run KMS_VL_ALL_AIO, CMD will fail at the echo.
command:KMS_VL_ALL_AIO%os%.cmd
, and run the script unelevated, it will try to run a file called KMS_VL_ALL_AIOWindows_NT.cmd
instead.This script doesn't start. I have 2 laptops but the script just won't start.
Log down:
>if 1 EQU 1 (
if defined _args echo /d /o /m
echo "!_batf!"
)
/d /o /m
"C:\Users\shjor\Downloads\MAS_1.4\KMS_VL_ALL_AIO.cmd"
>if exist "C:\Users\Public\ReadMeAIO.html" del /f /q "C:\Users\Public\ReadMeAIO.html"
>if exist "C:\WINDOWS\Temp\'" del /f /q "C:\WINDOWS\Temp\'"
>if exist "C:\WINDOWS\Temp\`.txt" del /f /q "C:\WINDOWS\Temp\`.txt"
>set _verb=0
>set "_wApp=55c92734-d682-4d71-983e-d6ec3f16059f"
>set "_oApp=0ff1ce15-a989-479d-af46-f275c6370663"
>set "_oA14=59a52881-a989-479d-af46-f275c6370663"
>set "IFEO=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options"
>set "OPPk=SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform"
>set "SPPk=SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform"
>set _Hook="C:\WINDOWS\System32\SppExtComObjHook.dll"
>set w7inf=C:\WINDOWS\Migration\WTR\KMS_VL_ALL.inf
>set "_TaskEx=\Microsoft\Windows\SoftwareProtectionPlatform\SvcTrigger"
>set "_TaskOs=\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskLogon"
>set "line1============================================================="
>set "line2=************************************************************"
>set "line3=____________________________________________________________"
>set "line4=__________________________________________________"
>set SSppHook=0
>for /F %A in ('dir /b /ad C:\WINDOWS\System32\spp\tokens\skus') do (
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\%A\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\%A\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\%A\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\CloudEdition\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\CloudEdition\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\CloudEdition\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\csvlk-pack\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\csvlk-pack\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\csvlk-pack\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Education\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Education\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Education\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Enterprise\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Enterprise\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Enterprise\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\IoTEnterprise\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\IoTEnterprise\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\IoTEnterprise\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Professional\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Professional\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\Professional\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalCountrySpecific\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalCountrySpecific\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalCountrySpecific\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalEducation\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalEducation\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalEducation\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalSingleLanguage\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalSingleLanguage\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalSingleLanguage\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalWorkstation\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalWorkstation\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ProfessionalWorkstation\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>(
if 22000 GEQ 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ServerRdsh\*GVLK*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ServerRdsh\*VLKMS*.xrm-ms" set SSppHook=1
if 22000 LSS 9200 if exist "C:\WINDOWS\System32\spp\tokens\skus\ServerRdsh\*VL-BYPASS*.xrm-ms" set SSppHook=1
)
>set OsppHook=1
>sc query osppsvc
[SC] EnumQueryServicesStatus:OpenService FALHA 1060:
O serviço especificado não existe como serviço instalado.
>if 1060 EQU 1060 set OsppHook=0
>set ESU_KMS=0
>if 22000 LSS 9200 for /F %A in ('dir /b /ad C:\WINDOWS\System32\spp\tokens\channels') do (if exist "C:\WINDOWS\System32\spp\tokens\channels\%A\*VL-BYPASS*.xrm-ms" set ESU_KMS=1 )
>if 0 EQU 1 (set "adoff=and LicenseDependsOn is NULL" & set "addon=and LicenseDependsOn is not NULL" ) else (set "adoff=" & set "addon=" )
>set ESU_EDT=0
>if 0 EQU 1 for %A in (Enterprise EnterpriseE EnterpriseN Professional ProfessionalE ProfessionalN Ultimate UltimateE UltimateN) do (if exist "C:\WINDOWS\System32\spp\tokens\skus\Security-SPP-Component-SKU-%A\*.xrm-ms" set ESU_EDT=1 )
>if 0 EQU 1 set SSppHook=1
>set ESU_ADD=0
>if 22000 GEQ 9200 (
set OSType=Win8
set SppVer=SppExtComObj.exe
) else if 22000 GEQ 7600 (
set OSType=Win7
set SppVer=sppsvc.exe
) else (goto :UnsupportedVersion )
>if Win8 EQU Win8 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sppsvc.exe" && (
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sppsvc.exe" /f
call :StopService sppsvc
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>set _uRI=10080
>set _uAI=120
>set _dDbg=No
>if 0 EQU 0 if 1 EQU 0 set ActWindows=1
>if 1 EQU 1 if not defined fAUR set fAUR=0 & set External=0
>if 1 EQU 1 if not defined fAUR set fAUR=0 & set External=0
>if not defined fAUR if not defined rAUR goto :MainMenu
>if defined rAUR (set _verb=1 & cls & call :RemoveHook & goto :cCache )
>set Unattend=1
>set _ReAR=0
>set _AUR=0
>if exist "C:\WINDOWS\System32\SppExtComObjHook.dll" dir /b /al "C:\WINDOWS\System32\SppExtComObjHook.dll" || (
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /v VerifierFlags && set _AUR=1
if 1 EQU 0 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe" /v VerifierFlags && set _AUR=1
)
>if 0 EQU 1 (set _ReAR=1 & if 0 EQU 0 (set _AUR=1 & set _verb=1 & set _rtr=DoActivate & cls & goto :InstallHook ) else (set _verb=0 & set _rtr=DoActivate & cls & goto :InstallHook ) )
>if 0 EQU 0 (set _AUR=0 & cls & goto :DoActivate )
>if No == Yes (
set "_para=/d"
if 0 EQU 0 set "_para=!_para! /o"
if 1 EQU 0 set "_para=!_para! /w"
if 1 EQU 0 set "_para=!_para! /x"
if 0 EQU 1 set "_para=!_para! /e 0.0.0.0"
if 0 EQU 0 if 0 EQU 0 set "_para=!_para! /m"
if 0 EQU 0 if 0 EQU 1 set "_para=!_para! /a"
goto :DoDebug
)
>if 0 EQU 1 (if "0.0.0.0" == "0.0.0.0" set External=0 )
>if 0 EQU 1 (set _AUR=1 )
>if 0 EQU 0 (set KMS_IP=0.0.0.0 )
>if 0 EQU 0 (
set KMS_RenewalInterval=43200
set KMS_ActivationInterval=43200
) else (
set KMS_RenewalInterval=10080
set KMS_ActivationInterval=120
)
>if 0 EQU 1 (color 8F & set "mode=External ^(0.0.0.0^)" ) else (if 0 EQU 0 (color 1F & set "mode=Manual" ) else (color 07 & set "mode=Auto Renewal" ) )
>if 1 EQU 0 (if 1 EQU 0 (title KMS_VL_ALL_AIO v45 ) else (set "_title=KMS_VL_ALL_AIO v45 : Manual" & title KMS_VL_ALL_AIO v45 : Manual ) ) else (
echo.
echo Running KMS_VL_ALL_AIO v45
)
Running KMS_VL_ALL_AIO v45
>if 0 EQU 0 if 1 EQU 0 (
powershell -nop -c "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=31;$B.Height=300;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}"
if 1 EQU 0 title KMS_VL_ALL_AIO v45
)
>if 22000 GEQ 9600 (
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoGenTicket /t REG_DWORD /d 1 /f
if 22000 EQU 14393 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoAcquireGT /t REG_DWORD /d 1 /f
)
A operação foi concluída com êxito.
>echo.
>echo Activation Mode: Manual
Activation Mode: Manual
>call :StopService sppsvc
>sc query sppsvc | find /i "STOPPED" || net stop sppsvc /y
ESTADO : 1 STOPPED
>sc query sppsvc | find /i "STOPPED" || sc stop sppsvc
ESTADO : 1 STOPPED
>goto :eof
>if 0 NEQ 0 call :StopService osppsvc
>if 0 EQU 0 if 0 EQU 0 (set _verb=0 & set _rtr=ReturnHook & goto :InstallHook )
>if No == Yes (
set "_para=/d /a"
if 0 EQU 0 set "_para=!_para! /o"
if 1 EQU 0 set "_para=!_para! /w"
if 1 EQU 0 set "_para=!_para! /x"
goto :DoDebug
)
>if 0 EQU 1 (
if 0 EQU 0 if 1 EQU 0 (
mode con cols=100 lines=32
powershell -nop -c "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=31;$B.Height=300;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}"
if 1 EQU 0 title KMS_VL_ALL_AIO v45
)
echo. & echo ____________________________________________________________ & echo.
echo Installing Local KMS Emulator...
)
>set "AddExc="
>set "_qr=WMIC /NAMESPACE:\\root\Microsoft\Windows\Defender PATH MSFT_MpPreference call Add ExclusionPath="C:\WINDOWS\System32\SppExtComObjHook.dll" Force=True"
>if 0 NEQ 0 set "_qr=cscript.exe //NoLogo //Job:MPS "KMS_VL_ALL_AIO.cmd?.wsf" Add "C:\WINDOWS\System32\SppExtComObjHook.dll""
>if 22000 GEQ 9600 (WMIC /NAMESPACE:\\root\Microsoft\Windows\Defender PATH MSFT_MpPreference call Add ExclusionPath="C:\WINDOWS\System32\SppExtComObjHook.dll" Force=True && set "AddExc= and Windows Defender exclusion" )
Executando (MSFT_MpPreference)->Add()
O método foi executado com êxito.
>if 0 EQU 1 (
echo.
echo Adding File and Windows Defender exclusion...
echo C:\WINDOWS\System32\SppExtComObjHook.dll
)
>if 0 EQU 1 (
call :StopService sppsvc
if 0 NEQ 0 call :StopService osppsvc
)
>for %# in (SppExtComObjHookAvrf.dll SppExtComObjHook.dll SppExtComObjPatcher.dll SppExtComObjPatcher.exe) do (
if exist "C:\WINDOWS\System32\%#" del /f /q "C:\WINDOWS\System32\%#"
if exist "C:\WINDOWS\SysWOW64\%#" del /f /q "C:\WINDOWS\SysWOW64\%#"
)
>(
if exist "C:\WINDOWS\System32\SppExtComObjHookAvrf.dll" del /f /q "C:\WINDOWS\System32\SppExtComObjHookAvrf.dll"
if exist "C:\WINDOWS\SysWOW64\SppExtComObjHookAvrf.dll" del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjHookAvrf.dll"
)
>(
if exist "C:\WINDOWS\System32\SppExtComObjHook.dll" del /f /q "C:\WINDOWS\System32\SppExtComObjHook.dll"
if exist "C:\WINDOWS\SysWOW64\SppExtComObjHook.dll" del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjHook.dll"
)
>(
if exist "C:\WINDOWS\System32\SppExtComObjPatcher.dll" del /f /q "C:\WINDOWS\System32\SppExtComObjPatcher.dll"
if exist "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.dll" del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.dll"
)
>(
if exist "C:\WINDOWS\System32\SppExtComObjPatcher.exe" del /f /q "C:\WINDOWS\System32\SppExtComObjPatcher.exe"
if exist "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.exe" del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.exe"
)
>powershell -nop -c "$d='C:\WINDOWS\System32';$f=[IO.File]::ReadAllText('!_batp!') -split ':embdbin\:.*';iex ($f[1]);X 2"
>if 1 EQU 0 title KMS_VL_ALL_AIO v45
>if 0 EQU 1 (
echo.
echo Adding Registry Keys...
)
>if 1 NEQ 0 call :CreateIFEOEntry SppExtComObj.exe
>if 0 EQU 1 (echo [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe] )
>reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v Debugger 1>nul 2>nul
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v VerifierDlls /t REG_SZ /d "SppExtComObjHook.dll"
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v VerifierDebug /t REG_DWORD /d 0x00000000
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v VerifierFlags /t REG_DWORD /d 0x80000000
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v GlobalFlag /t REG_DWORD /d 0x00000100
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_Emulation /t REG_DWORD /d 1
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_ActivationInterval /t REG_DWORD /d 43200
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_RenewalInterval /t REG_DWORD /d 43200
A operação foi concluída com êxito.
>if /I SppExtComObj.exe EQU SppExtComObj.exe if 22000 GEQ 9600 (reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f /v KMS_HWID /t REG_QWORD /d "0x3A1C049600B60076" )
A operação foi concluída com êxito.
>goto :eof
>if 0 EQU 1 (call :CreateIFEOEntry osppsvc.exe ) else (if 0 NEQ 0 call :CreateIFEOEntry osppsvc.exe )
>if 0 EQU 1 if Win8 EQU Win7 (
call :CreateIFEOEntry SppExtComObj.exe
if 1 NEQ 0 if not exist C:\WINDOWS\Migration\WTR\KMS_VL_ALL.inf (
if 0 EQU 1 (echo. & echo Adding migration fail-safe... & echo C:\WINDOWS\Migration\WTR\KMS_VL_ALL.inf )
if not exist "C:\WINDOWS\Migration\WTR" md "C:\WINDOWS\Migration\WTR"
(
echo [WTR]
echo Name="KMS_VL_ALL"
echo.
echo [WTR.W8]
echo NotifyUser="No"
echo.
echo [System.Registry]
echo "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sppsvc.exe [*]"
) 1>C:\WINDOWS\Migration\WTR\KMS_VL_ALL.inf
)
)
>if 0 EQU 1 if Win8 EQU Win8 call :CreateTask
>if 0 EQU 1 echo. & echo ____________________________________________________________ & echo.
>goto :ReturnHook
>if 0 EQU 0 if 0 EQU 1 (
call :UpdateIFEOEntry SppExtComObj.exe
call :UpdateIFEOEntry osppsvc.exe
)
>if 0 EQU 1 if 0 EQU 1 (call :UpdateOSPPEntry osppsvc.exe )
>SET Win10Gov=0
>SET "EditionWMI="
>SET "EditionID="
>IF 22000 LSS 14393 if 1 NEQ 0 GOTO :Main
>SET "RegKey=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages"
>SET "Pattern=Microsoft-Windows-*Edition~31bf3856ad364e35"
>SET "EditionPKG=FFFFFFFF"
>FOR /F "TOKENS=8 DELIMS=\" %A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" /f "Microsoft-Windows-*Edition~31bf3856ad364e35" /k | FIND /I "CurrentVersion"') DO (REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%A" /v "CurrentState" | FIND /I "0x70" && (FOR /F "TOKENS=3 DELIMS=-~" %B IN ('ECHO %A') DO SET "EditionPKG=%B" ) )
>(REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22000.194" /v "CurrentState" | FIND /I "0x70" && (FOR /F "TOKENS=3 DELIMS=-~" %B IN ('ECHO Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22000.194') DO SET "EditionPKG=%B" ) )
>(REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22000.318" /v "CurrentState" | FIND /I "0x70" && (FOR /F "TOKENS=3 DELIMS=-~" %B IN ('ECHO Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22000.318') DO SET "EditionPKG=%B" ) )
>(REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22000.348" /v "CurrentState" | FIND /I "0x70" && (FOR /F "TOKENS=3 DELIMS=-~" %B IN ('ECHO Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22000.348') DO SET "EditionPKG=%B" ) )
CurrentState REG_DWORD 0x70
>SET "EditionPKG=ProfessionalEdition"
>IF /I "Edition" == "Edition" (SET "EditionID=Professional" ) ELSE (FOR /F "TOKENS=3 DELIMS=: " %A IN ('DISM /English /Online /Get-CurrentEdition | FIND /I "Current Edition :"') DO SET "EditionID=%A" )
>net start sppsvc /y
O serviço de Proteção de Software está sendo iniciado.
O serviço de Proteção de Software foi iniciado com êxito.
>set "_qr="wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND PartialProductKey is not NULL) get LicenseFamily /value""
>FOR /F "TOKENS=2 DELIMS==" %A IN ('"wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND PartialProductKey is not NULL) get LicenseFamily /value" ') DO SET "EditionWMI=%A"
>SET "EditionWMI=Professional
"
>IF "Professional" == "" (
IF 22000 GEQ 17063 FOR /F "SKIP=2 TOKENS=2*" %A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionId') DO SET "EditionID=%B"
IF 22000 LSS 14393 (
FOR /F "SKIP=2 TOKENS=2*" %A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionId') DO SET "EditionID=%B"
GOTO :Main
)
)
>IF NOT "Professional" == "" SET "EditionID=Professional"
>IF /I "Professional" == "IoTEnterprise" SET "EditionID=Enterprise"
>IF /I "Professional" == "IoTEnterpriseS" SET "EditionID=EnterpriseS"
>IF /I "Professional" == "ProfessionalSingleLanguage" SET "EditionID=Professional"
>IF /I "Professional" == "ProfessionalCountrySpecific" SET "EditionID=Professional"
>IF /I "Professional" == "EnterpriseG" SET Win10Gov=1
>IF /I "Professional" == "EnterpriseGN" SET Win10Gov=1
>if defined EditionID (set "_winos=Windows Professional edition" ) else (set "_winos=Detected Windows" )
>for /F "skip=2 tokens=2*" %a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName ') do if not errorlevel 1 set "_winos=%b"
>if not errorlevel 1 set "_winos=Windows 10 Pro"
>set "nKMS=does not support KMS activation..."
>set "nEval=Evaluation Editions cannot be activated. Please install full Windows OS."
>if exist "C:\WINDOWS\Servicing\Packages\Microsoft-Windows-*EvalEdition~*.mum" set _eval=1
>if exist "C:\WINDOWS\Servicing\Packages\Microsoft-Windows-Server*EvalEdition~*.mum" set "nEval=Server Evaluation cannot be activated. Please convert to full Server OS."
>if exist "C:\WINDOWS\Servicing\Packages\Microsoft-Windows-Server*EvalCorEdition~*.mum" set _eval=1 & set "nEval=Server Evaluation cannot be activated. Please convert to full Server OS."
>set "_C16R="
>reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath && for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" ') do if exist "%b\root\Licenses16\ProPlus*.xrm-ms" (reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds && set "_C16R=HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration" )
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun
InstallPath REG_SZ C:\Program Files\Microsoft Office
>if exist "C:\Program Files\Microsoft Office\root\Licenses16\ProPlus*.xrm-ms" (reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds && set "_C16R=HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration" )
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration
ProductReleaseIds REG_SZ ProPlus2021Retail
>if not defined _C16R reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun /v InstallPath && for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun /v InstallPath" ') do if exist "%b\root\Licenses16\ProPlus*.xrm-ms" (reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds && set "_C16R=HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun\Configuration" )
>set "_C15R="
>reg query HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun /v InstallPath && for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun /v InstallPath" ') do if exist "%b\root\Licenses\ProPlus*.xrm-ms" (
reg query HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration /v ProductReleaseIds && call set "_C15R=HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration"
if not defined _C15R reg query HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\propertyBag /v productreleaseid && call set "_C15R=HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun\propertyBag"
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>set "_C14R="
>if 1 == 0 (reg query HKLM\SOFTWARE\Microsoft\Office\14.0\CVH /f Click2run /k && set "_C14R=1" ) else (reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\CVH /f Click2run /k && set "_C14R=1" )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>for %A in (14 15 16 19 21) do call :officeLoc %A
>call :officeLoc 14
>set loc_off14=0
>set _O14MSI=0
>if 14 EQU 19 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2019 && set loc_off14=1
exit /b
)
>if 14 EQU 21 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2021 && set loc_off14=1
exit /b
)
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" (
set loc_off14=1
set _O14MSI=1
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" (
set loc_off14=1
set _O14MSI=1
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 14 EQU 16 if defined _C16R (
for /F "skip=2 tokens=2*" %a in ('reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds') do echo %b 1>"!_temp!\c2rchk.txt"
for %a in (Mondo ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness OneNote Excel Outlook PowerPoint Publisher Word ProjectProX ProjectStdX VisioProX VisioStdX) do (findstr /I /C:"%aVolume" "!_temp!\c2rchk.txt" && set loc_off14=1 )
for %a in (Mondo ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness OneNote Excel Outlook PowerPoint Publisher Word Professional HomeBusiness HomeStudent O365Business O365SmallBusPrem O365HomePrem O365EduCloud) do (findstr /I /C:"%aRetail" "!_temp!\c2rchk.txt" && set loc_off14=1 )
exit /b
)
>if 14 EQU 15 if defined _C15R (
set loc_off14=1
exit /b
)
>if exist "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" set loc_off14=1
>if not x64 == x86 if exist "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" set loc_off14=1
>if not x64 == x86 if exist "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" set loc_off14=1
>exit /b
>call :officeLoc 15
>set loc_off15=0
>set _O15MSI=0
>if 15 EQU 19 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2019 && set loc_off15=1
exit /b
)
>if 15 EQU 21 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2021 && set loc_off15=1
exit /b
)
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\15.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" (
set loc_off15=1
set _O15MSI=1
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" (
set loc_off15=1
set _O15MSI=1
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 15 EQU 16 if defined _C16R (
for /F "skip=2 tokens=2*" %a in ('reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds') do echo %b 1>"!_temp!\c2rchk.txt"
for %a in (Mondo ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness OneNote Excel Outlook PowerPoint Publisher Word ProjectProX ProjectStdX VisioProX VisioStdX) do (findstr /I /C:"%aVolume" "!_temp!\c2rchk.txt" && set loc_off15=1 )
for %a in (Mondo ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness OneNote Excel Outlook PowerPoint Publisher Word Professional HomeBusiness HomeStudent O365Business O365SmallBusPrem O365HomePrem O365EduCloud) do (findstr /I /C:"%aRetail" "!_temp!\c2rchk.txt" && set loc_off15=1 )
exit /b
)
>if 15 EQU 15 if defined _C15R (
set loc_off15=1
exit /b
)
>if exist "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" set loc_off15=1
>if not x64 == x86 if exist "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" set loc_off15=1
>if not x64 == x86 if exist "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" set loc_off15=1
>exit /b
>call :officeLoc 16
>set loc_off16=0
>set _O16MSI=0
>if 16 EQU 19 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2019 && set loc_off16=1
exit /b
)
>if 16 EQU 21 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2021 && set loc_off16=1
exit /b
)
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\16.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" (
set loc_off16=1
set _O16MSI=1
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" (
set loc_off16=1
set _O16MSI=1
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 16 EQU 16 if defined _C16R (
for /F "skip=2 tokens=2*" %a in ('reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds') do echo %b 1>"!_temp!\c2rchk.txt"
for %a in (Mondo ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness OneNote Excel Outlook PowerPoint Publisher Word ProjectProX ProjectStdX VisioProX VisioStdX) do (findstr /I /C:"%aVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
for %a in (Mondo ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness OneNote Excel Outlook PowerPoint Publisher Word Professional HomeBusiness HomeStudent O365Business O365SmallBusPrem O365HomePrem O365EduCloud) do (findstr /I /C:"%aRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
exit /b
)
>echo ProPlus2021Retail 1>"!_temp!\c2rchk.txt"
>(findstr /I /C:"MondoVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProPlusVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProjectProVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"VisioProVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"StandardVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProjectStdVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"VisioStdVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"AccessVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"SkypeforBusinessVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"OneNoteVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ExcelVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"OutlookVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"PowerPointVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"PublisherVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"WordVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProjectProXVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProjectStdXVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"VisioProXVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"VisioStdXVolume" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"MondoRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProPlusRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProjectProRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"VisioProRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"StandardRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProjectStdRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"VisioStdRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"AccessRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"SkypeforBusinessRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"OneNoteRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ExcelRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"OutlookRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"PowerPointRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"PublisherRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"WordRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"ProfessionalRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"HomeBusinessRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"HomeStudentRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"O365BusinessRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"O365SmallBusPremRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"O365HomePremRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>(findstr /I /C:"O365EduCloudRetail" "!_temp!\c2rchk.txt" && set loc_off16=1 )
>call :officeLoc 19
>set loc_off19=0
>set _O19MSI=0
>if 19 EQU 19 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2019 && set loc_off19=1
exit /b
)
>call :officeLoc 21
>set loc_off21=0
>set _O21MSI=0
>if 21 EQU 19 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2019 && set loc_off21=1
exit /b
)
>if 21 EQU 21 (
if defined _C16R reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds | findstr 2021 && set loc_off21=1
exit /b
)
ProductReleaseIds REG_SZ ProPlus2021Retail
>if 0 EQU 1 set "_C14R="
>set S_OK=1
>call :RunSPP
>set spp=SoftwareLicensingProduct
>set sps=SoftwareLicensingService
>set W1nd0ws=1
>set WinPerm=0
>set WinVL=0
>set Off1ce=0
>set RunR2V=0
>set aC2R21=0
>set aC2R19=0
>set aC2R16=0
>set aC2R15=0
>if 22000 GEQ 9200 if 1 NEQ 0 call :sppoff
>set OffUWP=0
>if 22000 GEQ 10240 reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msoxmled.exe" && (
dir /b "C:\Program Files\WindowsApps\Microsoft.Office.Desktop*" && set OffUWP=1
if not x64 == x86 dir /b "C:\Program Files\WindowsApps\Microsoft.Office.Desktop*" && set OffUWP=1
)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msoxmled.exe
(padrão) REG_SZ C:\Program Files\Microsoft Office\Root\VFS\ProgramFilesCommonX64\Microsoft Shared\OFFICE16\MSOXMLED.EXE
UseURL REG_SZ 1
Arquivo não encontrado
Arquivo não encontrado
>rem nothing installed
>if 1 EQU 0 if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 (
if 0 EQU 0 (echo. & echo No Installed Office 2013-2021 Product Detected... ) else (echo. & echo Detected Office 365/2016 UWP is not supported by KMS_VL_ALL )
exit /b
)
>set Off1ce=1
>set _sC2R=sppoff
>set _fC2R=ReturnSPP
>set vol_off15=0 & set vol_off16=0 & set vol_off19=0 & set vol_off21=0
>set "_qr=wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' AND NOT Name like '%MondoR_KMS_Automation%' ) get Name /value"
>wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' AND NOT Name like '%MondoR_KMS_Automation%' ) get Name /value 1>"!_temp!\sppchk.txt" 2>&1
>find /i "Office 21" "!_temp!\sppchk.txt" && (set vol_off21=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>find /i "Office 19" "!_temp!\sppchk.txt" && (set vol_off19=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>find /i "Office 16" "!_temp!\sppchk.txt" && (set vol_off16=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>find /i "Office 15" "!_temp!\sppchk.txt" && (set vol_off15=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>for %A in (15 16 19 21) do if !loc_off%A! EQU 0 set vol_off%A=0
>if !loc_off15! EQU 0 set vol_off15=0
>if !loc_off16! EQU 0 set vol_off16=0
>if !loc_off19! EQU 0 set vol_off19=0
>if !loc_off21! EQU 0 set vol_off21=0
>set "_qr=wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%'" get LicenseFamily /value"
>if 0 EQU 1 find /i "Office16MondoVL_KMS_Client" "!_temp!\sppchk.txt" && (wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%'" get LicenseFamily /value | find /i "O365" || (set vol_off16=0 ) )
>set "_qr=wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'OfficeO365%'" get LicenseFamily /value"
>if 0 EQU 1 find /i "OfficeMondoVL_KMS_Client" "!_temp!\sppchk.txt" && (wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'OfficeO365%'" get LicenseFamily /value | find /i "O365" || (set vol_off15=0 ) )
>set ret_off15=0 & set ret_off16=0 & set ret_off19=0 & set ret_off21=0
>set "_qr=wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND NOT Name like '%O365%' ) get Name /value"
>wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND NOT Name like '%O365%' ) get Name /value 1>"!_temp!\sppchk.txt" 2>&1
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 21" && (set ret_off21=1 )
Name=Office 21, Office21ProPlus2021MSDNR_Retail edition
Name=Office 21, Office21ProPlus2021R_Retail edition
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 19" && (set ret_off19=1 )
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 16" && (set ret_off16=1 )
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 15" && (set ret_off15=1 )
>if 1 EQU 1 if 0 EQU 0 set vol_off21=0
>if 0 EQU 1 if 0 EQU 0 set vol_off19=0
>if 0 EQU 1 if 0 EQU 0 set vol_off16=0
>if 0 EQU 1 if 0 EQU 0 set vol_off15=0
>set run_off16=0
>if defined _C16R if 0 EQU 1 if 0 EQU 0 if 0 EQU 1 (
for %a in (ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word) do find /i "Office16%aR" "!_temp!\sppchk.txt" && (
if 0 EQU 1 find /i "Office21%a2021VL" "!_temp!\sppchk.txt" || set run_off16=1
if 0 EQU 1 find /i "Office19%a2019VL" "!_temp!\sppchk.txt" || set run_off16=1
)
for %a in (Professional) do find /i "Office16%aR" "!_temp!\sppchk.txt" && (
if 0 EQU 1 find /i "Office21ProPlus2021VL" "!_temp!\sppchk.txt" || set run_off16=1
if 0 EQU 1 find /i "Office19ProPlus2019VL" "!_temp!\sppchk.txt" || set run_off16=1
)
for %a in (HomeBusiness HomeStudent) do find /i "Office16%aR" "!_temp!\sppchk.txt" && (
if 0 EQU 1 find /i "Office21Standard2021VL" "!_temp!\sppchk.txt" || set run_off16=1
if 0 EQU 1 find /i "Office19Standard2019VL" "!_temp!\sppchk.txt" || set run_off16=1
)
)
>set "_qr=wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%' ) get LicenseFamily /value"
>if defined _C16R if 0 EQU 1 if 0 EQU 0 wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%' ) get LicenseFamily /value | find /i "O365" && (find /i "Office16MondoVL" "!_temp!\sppchk.txt" || set run_off16=1 )
>set vol_offgl=1
>if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 set vol_offgl=0
>rem mixed Volume + Retail
>if 1 EQU 1 if 0 EQU 0 if 0 EQU 0 if 1 EQU 1 goto :C2RR2V
>set RunR2V=1
>set "_SLMGR=C:\WINDOWS\System32\slmgr.vbs"
>if 1 EQU 0 (set "_cscript=cscript //Nologo //B" ) else (set "_cscript=cscript //Nologo" )
>set _LTSC=0
>set "_tag=" & set "_ons= 2016"
>sc query ClickToRunSvc
NOME_DO_SERVIÇO: ClickToRunSvc
TIPO : 10 WIN32_OWN_PROCESS
ESTADO : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
CÓDIGO_DE_SAÍDA_DO_WIN32 : 0 (0x0)
CÓDIGO_DE_SAÍDA_DO_SERVIÇO : 0 (0x0)
PONTO_DE_VERIFICAÇÃO : 0x0
AGUARDAR_DICA : 0x0
>set error1=0
>sc query OfficeSvc
[SC] EnumQueryServicesStatus:OpenService FALHA 1060:
O serviço especificado não existe como serviço instalado.
>set error2=1060
>if 0 EQU 1060 if 1060 EQU 1060 (goto :ReturnSPP )
>set _Office16=0
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" ') do if exist "%b\root\Licenses16\ProPlus*.xrm-ms" (set _Office16=1 )
>if exist "C:\Program Files\Microsoft Office\root\Licenses16\ProPlus*.xrm-ms" (set _Office16=1 )
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun /v InstallPath" ') do if exist "%b\root\Licenses16\ProPlus*.xrm-ms" (set _Office16=1 )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>set _Office15=0
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\15.0\ClickToRun /v InstallPath" ') do if exist "%b\root\Licenses\ProPlus*.xrm-ms" (set _Office15=1 )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\ClickToRun /v InstallPath" ') do if exist "%b\root\Licenses\ProPlus*.xrm-ms" (set _Office15=1 )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 1 EQU 0 if 0 EQU 0 (goto :ReturnSPP )
>if 1 EQU 0 goto :Reg15istry
>set "_InstallRoot="
>set "_ProductIds="
>set "_GUID="
>set "_Config="
>set "_PRIDs="
>set "_LicensesPath="
>set "_Integrator="
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" ') do (set "_InstallRoot=%b\root" )
>(set "_InstallRoot=C:\Program Files\Microsoft Office\root" )
>if not "C:\Program Files\Microsoft Office\root" == "" (
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v PackageGUID" ') do (set "_GUID=%b" )
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds" ') do (set "_ProductIds=%b" )
set "_Config=HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
set "_PRIDs=HKLM\SOFTWARE\Microsoft\Office\ClickToRun\ProductReleaseIDs"
) else (
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun /v InstallPath" ') do (set "_InstallRoot=%b\root" )
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun /v PackageGUID" ') do (set "_GUID=%b" )
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds" ') do (set "_ProductIds=%b" )
set "_Config=HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun\Configuration"
set "_PRIDs=HKLM\SOFTWARE\WOW6432Node\Microsoft\Office\ClickToRun\ProductReleaseIDs"
)
>(set "_GUID=9AC08E99-230B-47e8-9721-4577B7F124EA" )
>(set "_ProductIds=ProPlus2021Retail" )
>set "_LicensesPath=C:\Program Files\Microsoft Office\root\Licenses16"
>set "_Integrator=C:\Program Files\Microsoft Office\root\integration\integrator.exe"
>for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\ProductReleaseIDs /v ActiveConfiguration" ') do set "_PRIDs=HKLM\SOFTWARE\Microsoft\Office\ClickToRun\ProductReleaseIDs\%b"
>set "_PRIDs=HKLM\SOFTWARE\Microsoft\Office\ClickToRun\ProductReleaseIDs\EED63ECE-584B-4D94-B282-518DEE3570A9"
>if "ProPlus2021Retail" == "" (if 0 EQU 0 (goto :ReturnSPP ) else (goto :Reg15istry ) )
>if not exist "C:\Program Files\Microsoft Office\root\Licenses16\ProPlus*.xrm-ms" (if 0 EQU 0 (goto :ReturnSPP ) else (goto :Reg15istry ) )
>if not exist "C:\Program Files\Microsoft Office\root\integration\integrator.exe" (if 0 EQU 0 (goto :ReturnSPP ) else (goto :Reg15istry ) )
>if exist "C:\Program Files\Microsoft Office\root\Licenses16\Word2019VL_KMS_Client_AE*.xrm-ms" (set "_tag=2019" & set "_ons= 2019" )
>if exist "C:\Program Files\Microsoft Office\root\Licenses16\Word2021VL_KMS_Client_AE*.xrm-ms" (set _LTSC=1 )
>if 22000 LSS 10240 if !_LTSC! EQU 1 (set "_tag=2021" & set "_ons= 2021" )
>if 0 EQU 0 goto :CheckC2R
>set _OMSI=0
>if 1 EQU 0 (
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\16.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set _OMSI=1
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set _OMSI=1
)
>if 0 EQU 0 (
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\15.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set _OMSI=1
for /F "skip=2 tokens=2*" %a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot /v Path" ') do if exist "%b\OSPP.VBS" set _OMSI=1
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 22000 GEQ 9200 (
set _spp=SoftwareLicensingProduct
set _sps=SoftwareLicensingService
set "_vbsi=C:\WINDOWS\System32\slmgr.vbs /ilc "
) else (
set _spp=OfficeSoftwareProtectionProduct
set _sps=OfficeSoftwareProtectionService
set _vbsi="!_OSPP15VBS!" /inslic:
)
>set "_wmi="
>set "_qr="wmic path SoftwareLicensingService get Version /value""
>for /F "tokens=2 delims==" %# in ('"wmic path SoftwareLicensingService get Version /value"') do set _wmi=%#
>set _wmi=10.0.22000.348
>if "10.0.22000.348" == "" (goto :ReturnSPP )
>set _Identity=0
>set _vNext=0
>set sub_O365=0
>set sub_proj=0
>set sub_vis=0
>dir /b /s /a:-d "!_Local!\Microsoft\Office\Licenses\*1*" && set _Identity=1
C:\Users\shjor\AppData\Local\Microsoft\Office\Licenses\5\179908333170753867316231342162113319422
>dir /b /s /a:-d "!ProgramData!\Microsoft\Office\Licenses\*1*" && set _Identity=1
O sistema não pode encontrar o arquivo especificado.
>set kNext=HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext
>if 1 EQU 1 reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext /v MigrationToV5Done | find /i "0x1" && set _vNext=1
MigrationToV5Done REG_DWORD 0x1
>if 1 EQU 1 (
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r ".*retail" | findstr /i /v "project visio" | find /i "0x2" && (set sub_O365=1 )
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r ".*retail" | findstr /i /v "project visio" | find /i "0x3" && (set sub_O365=1 )
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r ".*volume" | findstr /i /v "project visio" | find /i "0x2" && (set sub_O365=1 )
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r ".*volume" | findstr /i /v "project visio" | find /i "0x3" && (set sub_O365=1 )
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r "project.*" | find /i "0x2" && set sub_proj=1
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r "project.*" | find /i "0x3" && set sub_proj=1
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r "visio.*" | find /i "0x2" && set sub_vis=1
reg query HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Licensing\LicensingNext | findstr /i /r "visio.*" | find /i "0x3" && set sub_vis=1
)
o365homepremretail REG_DWORD 0x2
>set _Retail=0
>set "_ocq=ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseStatus='1' AND PartialProductKey is not NULL"
>if 0 EQU 0 wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseStatus='1' AND PartialProductKey is not NULL) get Description | findstr /V /R "^$" 1>"!_temp!\crvRetail.txt"
Nenhuma instância disponível.
>set "_qr=cscript.exe //NoLogo //Job:WmiQuery "KMS_VL_ALL_AIO.cmd?.wsf" SoftwareLicensingProduct "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseStatus='1' AND PartialProductKey is not NULL" Description"
>if 0 NEQ 0 cscript.exe //NoLogo //Job:WmiQuery "KMS_VL_ALL_AIO.cmd?.wsf" SoftwareLicensingProduct "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseStatus='1' AND PartialProductKey is not NULL" Description 1>"!_temp!\crvRetail.txt"
>find /i "RETAIL channel" "!_temp!\crvRetail.txt" && set _Retail=1
---------- C:\WINDOWS\TEMP\CRVRETAIL.TXT
>find /i "RETAIL(MAK) channel" "!_temp!\crvRetail.txt" && set _Retail=1
---------- C:\WINDOWS\TEMP\CRVRETAIL.TXT
>find /i "TIMEBASED_SUB channel" "!_temp!\crvRetail.txt" && set _Retail=1
---------- C:\WINDOWS\TEMP\CRVRETAIL.TXT
>set "_copp="
>if exist "C:\WINDOWS\System32\msvcr100.dll" (set _copp=C:\WINDOWS\Temp ) else if exist "!_InstallRoot!\vfs\System\msvcr100.dll" (set _copp="!_InstallRoot!\vfs\System" ) else if exist "!_Install15Root!\vfs\System\msvcr100.dll" (set _copp="!_Install15Root!\vfs\System" ) else if exist "C:\WINDOWS\SysWOW64\msvcr100.dll" (
set _copp=C:\WINDOWS\Temp
set xBit=x86
) else if exist "!_InstallRoot!\vfs\SystemX86\msvcr100.dll" (
set _copp="!_InstallRoot!\vfs\SystemX86"
set xBit=x86
) else if exist "!_Install15Root!\vfs\SystemX86\msvcr100.dll" (
set _copp="!_Install15Root!\vfs\SystemX86"
set xBit=x86
)
>set _exeNum=4
>if x64 == x64 set _exeNum=5
>if 1 EQU 0 if 0 EQU 0 if 0 EQU 0 if defined _copp (
pushd C:\WINDOWS\Temp
powershell -nop -c "$d='!cd!';$f=[IO.File]::ReadAllText('!_batp!') -split ':embdbin\:.*';iex ($f[1]);Y 5"
cleanospp.exe -Licenses
del /f /q cleanospp.exe
popd
if 1 EQU 0 title KMS_VL_ALL_AIO v45
)
>set _O16O365=0
>set _C16Msg=0
>set _C15Msg=0
>set "_qr=cscript.exe //NoLogo //Job:WmiQuery "KMS_VL_ALL_AIO.cmd?.wsf" SoftwareLicensingProduct "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseStatus='1' AND PartialProductKey is not NULL" LicenseFamily"
>if 0 EQU 1 if 0 EQU 0 wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseStatus='1' AND PartialProductKey is not NULL) get LicenseFamily | findstr /V /R "^$" 1>"!_temp!\crvRetail.txt"
>if 0 EQU 1 if 0 NEQ 0 cscript.exe //NoLogo //Job:WmiQuery "KMS_VL_ALL_AIO.cmd?.wsf" SoftwareLicensingProduct "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseStatus='1' AND PartialProductKey is not NULL" LicenseFamily 1>"!_temp!\crvRetail.txt"
>set "_qr=cscript.exe //NoLogo //Job:WmiQuery "KMS_VL_ALL_AIO.cmd?.wsf" SoftwareLicensingProduct "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663'" LicenseFamily"
>if 0 EQU 0 wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663'" get LicenseFamily | findstr /V /R "^$" 1>"!_temp!\crvVolume.txt" 2>&1
>if 0 NEQ 0 cscript.exe //NoLogo //Job:WmiQuery "KMS_VL_ALL_AIO.cmd?.wsf" SoftwareLicensingProduct "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663'" LicenseFamily 1>"!_temp!\crvVolume.txt" 2>&1
>if 1 EQU 0 goto :R15V
>set _O21Ids=ProPlus2021,ProjectPro2021,VisioPro2021,Standard2021,ProjectStd2021,VisioStd2021,Access2021,SkypeforBusiness2021
>set _O19Ids=ProPlus2019,ProjectPro2019,VisioPro2019,Standard2019,ProjectStd2019,VisioStd2019,Access2019,SkypeforBusiness2019
>set _O16Ids=ProjectPro,VisioPro,Standard,ProjectStd,VisioStd,Access,SkypeforBusiness
>set _A21Ids=Excel2021,Outlook2021,PowerPoint2021,Publisher2021,Word2021
>set _A19Ids=Excel2019,Outlook2019,PowerPoint2019,Publisher2019,Word2019
>set _A16Ids=Excel,Outlook,PowerPoint,Publisher,Word
>set _V21Ids=ProPlus2021,ProjectPro2021,VisioPro2021,Standard2021,ProjectStd2021,VisioStd2021,Access2021,SkypeforBusiness2021,Excel2021,Outlook2021,PowerPoint2021,Publisher2021,Word2021
>set _V19Ids=ProPlus2019,ProjectPro2019,VisioPro2019,Standard2019,ProjectStd2019,VisioStd2019,Access2019,SkypeforBusiness2019,Excel2019,Outlook2019,PowerPoint2019,Publisher2019,Word2019
>set _V16Ids=Mondo,ProjectPro,VisioPro,Standard,ProjectStd,VisioStd,Access,SkypeforBusiness,Excel,Outlook,PowerPoint,Publisher,Word,OneNote
>set _R16Ids=Mondo,ProjectPro,VisioPro,Standard,ProjectStd,VisioStd,Access,SkypeforBusiness,Excel,Outlook,PowerPoint,Publisher,Word,OneNote,Professional,HomeBusiness,HomeStudent,O365ProPlus,O365Business,O365SmallBusPrem,O365HomePrem,O365EduCloud
>set _RetIds=ProPlus2021,ProjectPro2021,VisioPro2021,Standard2021,ProjectStd2021,VisioStd2021,Access2021,SkypeforBusiness2021,Excel2021,Outlook2021,PowerPoint2021,Publisher2021,Word2021,Professional2021,HomeBusiness2021,HomeStudent2021,ProPlus2019,ProjectPro2019,VisioPro2019,Standard2019,ProjectStd2019,VisioStd2019,Access2019,SkypeforBusiness2019,Excel2019,Outlook2019,PowerPoint2019,Publisher2019,Word2019,Professional2019,HomeBusiness2019,HomeStudent2019,Mondo,ProjectPro,VisioPro,Standard,ProjectStd,VisioStd,Access,SkypeforBusiness,Excel,Outlook,PowerPoint,Publisher,Word,OneNote,Professional,HomeBusiness,HomeStudent,O365ProPlus,O365Business,O365SmallBusPrem,O365HomePrem,O365EduCloud
>set _Suites=Mondo,O365ProPlus,O365Business,O365SmallBusPrem,O365HomePrem,O365EduCloud,ProPlus,Standard,Professional,HomeBusiness,HomeStudent,ProPlus2019,Standard2019,Professional2019,HomeBusiness2019,HomeStudent2019,ProPlus2021,Standard2021,Professional2021,HomeBusiness2021,HomeStudent2021
>set _PrjSKU=ProjectPro,ProjectStd,ProjectPro2019,ProjectStd2019,ProjectPro2021,ProjectStd2021
>set _VisSKU=VisioPro,VisioStd,VisioPro2019,VisioStd2019,VisioPro2021,VisioStd2021
>echo ProPlus2021Retail 1>"!_temp!\crvProductIds.txt"
>for %a in (ProPlus2021 ProjectPro2021 VisioPro2021 Standard2021 ProjectStd2021 VisioStd2021 Access2021 SkypeforBusiness2021 Excel2021 Outlook2021 PowerPoint2021 Publisher2021 Word2021 Professional2021 HomeBusiness2021 HomeStudent2021 ProPlus2019 ProjectPro2019 VisioPro2019 Standard2019 ProjectStd2019 VisioStd2019 Access2019 SkypeforBusiness2019 Excel2019 Outlook2019 PowerPoint2019 Publisher2019 Word2019 Professional2019 HomeBusiness2019 HomeStudent2019 Mondo ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word OneNote Professional HomeBusiness HomeStudent O365ProPlus O365Business O365SmallBusPrem O365HomePrem O365EduCloud ProPlus) do (set _%a=0 )
>(set _ProPlus2021=0 )
>(set _ProjectPro2021=0 )
>(set _VisioPro2021=0 )
>(set _Standard2021=0 )
>(set _ProjectStd2021=0 )
>(set _VisioStd2021=0 )
>(set _Access2021=0 )
>(set _SkypeforBusiness2021=0 )
>(set _Excel2021=0 )
>(set _Outlook2021=0 )
>(set _PowerPoint2021=0 )
>(set _Publisher2021=0 )
>(set _Word2021=0 )
>(set _Professional2021=0 )
>(set _HomeBusiness2021=0 )
>(set _HomeStudent2021=0 )
>(set _ProPlus2019=0 )
>(set _ProjectPro2019=0 )
>(set _VisioPro2019=0 )
>(set _Standard2019=0 )
>(set _ProjectStd2019=0 )
>(set _VisioStd2019=0 )
>(set _Access2019=0 )
>(set _SkypeforBusiness2019=0 )
>(set _Excel2019=0 )
>(set _Outlook2019=0 )
>(set _PowerPoint2019=0 )
>(set _Publisher2019=0 )
>(set _Word2019=0 )
>(set _Professional2019=0 )
>(set _HomeBusiness2019=0 )
>(set _HomeStudent2019=0 )
>(set _Mondo=0 )
>(set _ProjectPro=0 )
>(set _VisioPro=0 )
>(set _Standard=0 )
>(set _ProjectStd=0 )
>(set _VisioStd=0 )
>(set _Access=0 )
>(set _SkypeforBusiness=0 )
>(set _Excel=0 )
>(set _Outlook=0 )
>(set _PowerPoint=0 )
>(set _Publisher=0 )
>(set _Word=0 )
>(set _OneNote=0 )
>(set _Professional=0 )
>(set _HomeBusiness=0 )
>(set _HomeStudent=0 )
>(set _O365ProPlus=0 )
>(set _O365Business=0 )
>(set _O365SmallBusPrem=0 )
>(set _O365HomePrem=0 )
>(set _O365EduCloud=0 )
>(set _ProPlus=0 )
>for %a in (ProPlus2021 ProjectPro2021 VisioPro2021 Standard2021 ProjectStd2021 VisioStd2021 Access2021 SkypeforBusiness2021 Excel2021 Outlook2021 PowerPoint2021 Publisher2021 Word2021 Professional2021 HomeBusiness2021 HomeStudent2021 ProPlus2019 ProjectPro2019 VisioPro2019 Standard2019 ProjectStd2019 VisioStd2019 Access2019 SkypeforBusiness2019 Excel2019 Outlook2019 PowerPoint2019 Publisher2019 Word2019 Professional2019 HomeBusiness2019 HomeStudent2019 Mondo ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word OneNote Professional HomeBusiness HomeStudent O365ProPlus O365Business O365SmallBusPrem O365HomePrem O365EduCloud) do (findstr /I /C:"%aRetail" "!_temp!\crvProductIds.txt" && set _%a=1 )
>(findstr /I /C:"ProPlus2021Retail" "!_temp!\crvProductIds.txt" && set _ProPlus2021=1 )
ProPlus2021Retail
>(findstr /I /C:"ProjectPro2021Retail" "!_temp!\crvProductIds.txt" && set _ProjectPro2021=1 )
>(findstr /I /C:"VisioPro2021Retail" "!_temp!\crvProductIds.txt" && set _VisioPro2021=1 )
>(findstr /I /C:"Standard2021Retail" "!_temp!\crvProductIds.txt" && set _Standard2021=1 )
>(findstr /I /C:"ProjectStd2021Retail" "!_temp!\crvProductIds.txt" && set _ProjectStd2021=1 )
>(findstr /I /C:"VisioStd2021Retail" "!_temp!\crvProductIds.txt" && set _VisioStd2021=1 )
>(findstr /I /C:"Access2021Retail" "!_temp!\crvProductIds.txt" && set _Access2021=1 )
>(findstr /I /C:"SkypeforBusiness2021Retail" "!_temp!\crvProductIds.txt" && set _SkypeforBusiness2021=1 )
>(findstr /I /C:"Excel2021Retail" "!_temp!\crvProductIds.txt" && set _Excel2021=1 )
>(findstr /I /C:"Outlook2021Retail" "!_temp!\crvProductIds.txt" && set _Outlook2021=1 )
>(findstr /I /C:"PowerPoint2021Retail" "!_temp!\crvProductIds.txt" && set _PowerPoint2021=1 )
>(findstr /I /C:"Publisher2021Retail" "!_temp!\crvProductIds.txt" && set _Publisher2021=1 )
>(findstr /I /C:"Word2021Retail" "!_temp!\crvProductIds.txt" && set _Word2021=1 )
>(findstr /I /C:"Professional2021Retail" "!_temp!\crvProductIds.txt" && set _Professional2021=1 )
>(findstr /I /C:"HomeBusiness2021Retail" "!_temp!\crvProductIds.txt" && set _HomeBusiness2021=1 )
>(findstr /I /C:"HomeStudent2021Retail" "!_temp!\crvProductIds.txt" && set _HomeStudent2021=1 )
>(findstr /I /C:"ProPlus2019Retail" "!_temp!\crvProductIds.txt" && set _ProPlus2019=1 )
>(findstr /I /C:"ProjectPro2019Retail" "!_temp!\crvProductIds.txt" && set _ProjectPro2019=1 )
>(findstr /I /C:"VisioPro2019Retail" "!_temp!\crvProductIds.txt" && set _VisioPro2019=1 )
>(findstr /I /C:"Standard2019Retail" "!_temp!\crvProductIds.txt" && set _Standard2019=1 )
>(findstr /I /C:"ProjectStd2019Retail" "!_temp!\crvProductIds.txt" && set _ProjectStd2019=1 )
>(findstr /I /C:"VisioStd2019Retail" "!_temp!\crvProductIds.txt" && set _VisioStd2019=1 )
>(findstr /I /C:"Access2019Retail" "!_temp!\crvProductIds.txt" && set _Access2019=1 )
>(findstr /I /C:"SkypeforBusiness2019Retail" "!_temp!\crvProductIds.txt" && set _SkypeforBusiness2019=1 )
>(findstr /I /C:"Excel2019Retail" "!_temp!\crvProductIds.txt" && set _Excel2019=1 )
>(findstr /I /C:"Outlook2019Retail" "!_temp!\crvProductIds.txt" && set _Outlook2019=1 )
>(findstr /I /C:"PowerPoint2019Retail" "!_temp!\crvProductIds.txt" && set _PowerPoint2019=1 )
>(findstr /I /C:"Publisher2019Retail" "!_temp!\crvProductIds.txt" && set _Publisher2019=1 )
>(findstr /I /C:"Word2019Retail" "!_temp!\crvProductIds.txt" && set _Word2019=1 )
>(findstr /I /C:"Professional2019Retail" "!_temp!\crvProductIds.txt" && set _Professional2019=1 )
>(findstr /I /C:"HomeBusiness2019Retail" "!_temp!\crvProductIds.txt" && set _HomeBusiness2019=1 )
>(findstr /I /C:"HomeStudent2019Retail" "!_temp!\crvProductIds.txt" && set _HomeStudent2019=1 )
>(findstr /I /C:"MondoRetail" "!_temp!\crvProductIds.txt" && set _Mondo=1 )
>(findstr /I /C:"ProjectProRetail" "!_temp!\crvProductIds.txt" && set _ProjectPro=1 )
>(findstr /I /C:"VisioProRetail" "!_temp!\crvProductIds.txt" && set _VisioPro=1 )
>(findstr /I /C:"StandardRetail" "!_temp!\crvProductIds.txt" && set _Standard=1 )
>(findstr /I /C:"ProjectStdRetail" "!_temp!\crvProductIds.txt" && set _ProjectStd=1 )
>(findstr /I /C:"VisioStdRetail" "!_temp!\crvProductIds.txt" && set _VisioStd=1 )
>(findstr /I /C:"AccessRetail" "!_temp!\crvProductIds.txt" && set _Access=1 )
>(findstr /I /C:"SkypeforBusinessRetail" "!_temp!\crvProductIds.txt" && set _SkypeforBusiness=1 )
>(findstr /I /C:"ExcelRetail" "!_temp!\crvProductIds.txt" && set _Excel=1 )
>(findstr /I /C:"OutlookRetail" "!_temp!\crvProductIds.txt" && set _Outlook=1 )
>(findstr /I /C:"PowerPointRetail" "!_temp!\crvProductIds.txt" && set _PowerPoint=1 )
>(findstr /I /C:"PublisherRetail" "!_temp!\crvProductIds.txt" && set _Publisher=1 )
>(findstr /I /C:"WordRetail" "!_temp!\crvProductIds.txt" && set _Word=1 )
>(findstr /I /C:"OneNoteRetail" "!_temp!\crvProductIds.txt" && set _OneNote=1 )
>(findstr /I /C:"ProfessionalRetail" "!_temp!\crvProductIds.txt" && set _Professional=1 )
>(findstr /I /C:"HomeBusinessRetail" "!_temp!\crvProductIds.txt" && set _HomeBusiness=1 )
>(findstr /I /C:"HomeStudentRetail" "!_temp!\crvProductIds.txt" && set _HomeStudent=1 )
>(findstr /I /C:"O365ProPlusRetail" "!_temp!\crvProductIds.txt" && set _O365ProPlus=1 )
>(findstr /I /C:"O365BusinessRetail" "!_temp!\crvProductIds.txt" && set _O365Business=1 )
>(findstr /I /C:"O365SmallBusPremRetail" "!_temp!\crvProductIds.txt" && set _O365SmallBusPrem=1 )
>(findstr /I /C:"O365HomePremRetail" "!_temp!\crvProductIds.txt" && set _O365HomePrem=1 )
>(findstr /I /C:"O365EduCloudRetail" "!_temp!\crvProductIds.txt" && set _O365EduCloud=1 )
>if !_LTSC! EQU 0 for %a in (ProPlus2021 ProjectPro2021 VisioPro2021 Standard2021 ProjectStd2021 VisioStd2021 Access2021 SkypeforBusiness2021 Excel2021 Outlook2021 PowerPoint2021 Publisher2021 Word2021) do (set _%a=0 )
>if !_LTSC! EQU 1 for %a in (ProPlus2021 ProjectPro2021 VisioPro2021 Standard2021 ProjectStd2021 VisioStd2021 Access2021 SkypeforBusiness2021 Excel2021 Outlook2021 PowerPoint2021 Publisher2021 Word2021) do (findstr /I /C:"%aVolume" "!_temp!\crvProductIds.txt" && (find /i "Office21%aVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _%a=0 ) || (set _%a=1 ) ) )
>(findstr /I /C:"ProPlus2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21ProPlus2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProPlus2021=0 ) || (set _ProPlus2021=1 ) ) )
>(findstr /I /C:"ProjectPro2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21ProjectPro2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProjectPro2021=0 ) || (set _ProjectPro2021=1 ) ) )
>(findstr /I /C:"VisioPro2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21VisioPro2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _VisioPro2021=0 ) || (set _VisioPro2021=1 ) ) )
>(findstr /I /C:"Standard2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21Standard2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Standard2021=0 ) || (set _Standard2021=1 ) ) )
>(findstr /I /C:"ProjectStd2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21ProjectStd2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProjectStd2021=0 ) || (set _ProjectStd2021=1 ) ) )
>(findstr /I /C:"VisioStd2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21VisioStd2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _VisioStd2021=0 ) || (set _VisioStd2021=1 ) ) )
>(findstr /I /C:"Access2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21Access2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Access2021=0 ) || (set _Access2021=1 ) ) )
>(findstr /I /C:"SkypeforBusiness2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21SkypeforBusiness2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _SkypeforBusiness2021=0 ) || (set _SkypeforBusiness2021=1 ) ) )
>(findstr /I /C:"Excel2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21Excel2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Excel2021=0 ) || (set _Excel2021=1 ) ) )
>(findstr /I /C:"Outlook2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21Outlook2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Outlook2021=0 ) || (set _Outlook2021=1 ) ) )
>(findstr /I /C:"PowerPoint2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21PowerPoint2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _PowerPoint2021=0 ) || (set _PowerPoint2021=1 ) ) )
>(findstr /I /C:"Publisher2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21Publisher2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Publisher2021=0 ) || (set _Publisher2021=1 ) ) )
>(findstr /I /C:"Word2021Volume" "!_temp!\crvProductIds.txt" && (find /i "Office21Word2021VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Word2021=0 ) || (set _Word2021=1 ) ) )
>for %a in (ProPlus2019 ProjectPro2019 VisioPro2019 Standard2019 ProjectStd2019 VisioStd2019 Access2019 SkypeforBusiness2019 Excel2019 Outlook2019 PowerPoint2019 Publisher2019 Word2019) do (findstr /I /C:"%aVolume" "!_temp!\crvProductIds.txt" && (find /i "Office19%aVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _%a=0 ) || (set _%a=1 ) ) )
>(findstr /I /C:"ProPlus2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19ProPlus2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProPlus2019=0 ) || (set _ProPlus2019=1 ) ) )
>(findstr /I /C:"ProjectPro2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19ProjectPro2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProjectPro2019=0 ) || (set _ProjectPro2019=1 ) ) )
>(findstr /I /C:"VisioPro2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19VisioPro2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _VisioPro2019=0 ) || (set _VisioPro2019=1 ) ) )
>(findstr /I /C:"Standard2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19Standard2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Standard2019=0 ) || (set _Standard2019=1 ) ) )
>(findstr /I /C:"ProjectStd2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19ProjectStd2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProjectStd2019=0 ) || (set _ProjectStd2019=1 ) ) )
>(findstr /I /C:"VisioStd2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19VisioStd2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _VisioStd2019=0 ) || (set _VisioStd2019=1 ) ) )
>(findstr /I /C:"Access2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19Access2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Access2019=0 ) || (set _Access2019=1 ) ) )
>(findstr /I /C:"SkypeforBusiness2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19SkypeforBusiness2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _SkypeforBusiness2019=0 ) || (set _SkypeforBusiness2019=1 ) ) )
>(findstr /I /C:"Excel2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19Excel2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Excel2019=0 ) || (set _Excel2019=1 ) ) )
>(findstr /I /C:"Outlook2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19Outlook2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Outlook2019=0 ) || (set _Outlook2019=1 ) ) )
>(findstr /I /C:"PowerPoint2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19PowerPoint2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _PowerPoint2019=0 ) || (set _PowerPoint2019=1 ) ) )
>(findstr /I /C:"Publisher2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19Publisher2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Publisher2019=0 ) || (set _Publisher2019=1 ) ) )
>(findstr /I /C:"Word2019Volume" "!_temp!\crvProductIds.txt" && (find /i "Office19Word2019VL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Word2019=0 ) || (set _Word2019=1 ) ) )
>for %a in (Mondo ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word OneNote) do (findstr /I /C:"%aVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16%aVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _%a=0 ) || (set _%a=1 ) ) )
>(findstr /I /C:"MondoVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16MondoVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Mondo=0 ) || (set _Mondo=1 ) ) )
>(findstr /I /C:"ProjectProVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16ProjectProVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProjectPro=0 ) || (set _ProjectPro=1 ) ) )
>(findstr /I /C:"VisioProVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16VisioProVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _VisioPro=0 ) || (set _VisioPro=1 ) ) )
>(findstr /I /C:"StandardVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16StandardVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Standard=0 ) || (set _Standard=1 ) ) )
>(findstr /I /C:"ProjectStdVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16ProjectStdVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProjectStd=0 ) || (set _ProjectStd=1 ) ) )
>(findstr /I /C:"VisioStdVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16VisioStdVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _VisioStd=0 ) || (set _VisioStd=1 ) ) )
>(findstr /I /C:"AccessVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16AccessVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Access=0 ) || (set _Access=1 ) ) )
>(findstr /I /C:"SkypeforBusinessVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16SkypeforBusinessVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _SkypeforBusiness=0 ) || (set _SkypeforBusiness=1 ) ) )
>(findstr /I /C:"ExcelVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16ExcelVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Excel=0 ) || (set _Excel=1 ) ) )
>(findstr /I /C:"OutlookVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16OutlookVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Outlook=0 ) || (set _Outlook=1 ) ) )
>(findstr /I /C:"PowerPointVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16PowerPointVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _PowerPoint=0 ) || (set _PowerPoint=1 ) ) )
>(findstr /I /C:"PublisherVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16PublisherVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Publisher=0 ) || (set _Publisher=1 ) ) )
>(findstr /I /C:"WordVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16WordVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _Word=0 ) || (set _Word=1 ) ) )
>(findstr /I /C:"OneNoteVolume" "!_temp!\crvProductIds.txt" && (find /i "Office16OneNoteVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _OneNote=0 ) || (set _OneNote=1 ) ) )
>reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\ProductReleaseIDs\EED63ECE-584B-4D94-B282-518DEE3570A9\ProPlusRetail.16 && (find /i "Office16ProPlusVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProPlus=0 ) || (set _ProPlus=1 ) )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\ProductReleaseIDs\EED63ECE-584B-4D94-B282-518DEE3570A9\ProPlusVolume.16 && (find /i "Office16ProPlusVL_KMS_Client" "!_temp!\crvVolume.txt" && (set _ProPlus=0 ) || (set _ProPlus=1 ) )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 0 EQU 1 for %a in (ProPlus2021 ProjectPro2021 VisioPro2021 Standard2021 ProjectStd2021 VisioStd2021 Access2021 SkypeforBusiness2021 Excel2021 Outlook2021 PowerPoint2021 Publisher2021 Word2021 Professional2021 HomeBusiness2021 HomeStudent2021 ProPlus2019 ProjectPro2019 VisioPro2019 Standard2019 ProjectStd2019 VisioStd2019 Access2019 SkypeforBusiness2019 Excel2019 Outlook2019 PowerPoint2019 Publisher2019 Word2019 Professional2019 HomeBusiness2019 HomeStudent2019 Mondo ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word OneNote Professional HomeBusiness HomeStudent O365ProPlus O365Business O365SmallBusPrem O365HomePrem O365EduCloud) do (findstr /I /C:"%aRetail" "!_temp!\crvProductIds.txt" && (
find /i "Office16%aR_Retail" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aR_OEM" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aR_Sub" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aR_PIN" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aE5R_" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aEDUR_" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aMSDNR_" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aO365R_" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aCO365R_" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aVL_MAK" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office16%aXC2RVL_MAKC2R" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R16=1 )
find /i "Office19%aR_Retail" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R19=1 )
find /i "Office19%aR_OEM" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R19=1 )
find /i "Office19%aMSDNR_" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R19=1 )
find /i "Office19%aVL_MAK" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R19=1 )
find /i "Office21%aR_Retail" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R21=1 )
find /i "Office21%aR_OEM" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R21=1 )
find /i "Office21%aMSDNR_" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R21=1 )
find /i "Office21%aVL_MAK" "!_temp!\crvRetail.txt" && (set _%a=0 & set aC2R21=1 )
) )
>if 0 EQU 1 reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\ProductReleaseIDs\EED63ECE-584B-4D94-B282-518DEE3570A9\ProPlusRetail.16 && (
find /i "Office16ProPlusR_Retail" "!_temp!\crvRetail.txt" && (set _ProPlus=0 & set aC2R16=1 )
find /i "Office16ProPlusR_OEM" "!_temp!\crvRetail.txt" && (set _ProPlus=0 & set aC2R16=1 )
find /i "Office16ProPlusMSDNR_" "!_temp!\crvRetail.txt" && (set _ProPlus=0 & set aC2R16=1 )
find /i "Office16ProPlusVL_MAK" "!_temp!\crvRetail.txt" && (set _ProPlus=0 & set aC2R16=1 )
)
>set "_qr=wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%'" get LicenseFamily /value"
>find /i "Office16MondoVL_KMS_Client" "!_temp!\crvVolume.txt" && (wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%'" get LicenseFamily /value | find /i "O365" && (for %a in (O365ProPlus O365Business O365SmallBusPrem O365HomePrem O365EduCloud) do set _%a=0 ) )
---------- C:\WINDOWS\TEMP\CRVVOLUME.TXT
>if 1 EQU 1 (
for %a in (Mondo O365ProPlus O365Business O365SmallBusPrem O365HomePrem O365EduCloud ProPlus Standard Professional HomeBusiness HomeStudent ProPlus2019 Standard2019 Professional2019 HomeBusiness2019 HomeStudent2019 ProPlus2021 Standard2021 Professional2021 HomeBusiness2021 HomeStudent2021) do set _%a=0
echo.
echo Microsoft 365 product is activated with a subscription.
)
>set _Mondo=0
>set _O365ProPlus=0
>set _O365Business=0
>set _O365SmallBusPrem=0
>set _O365HomePrem=0
>set _O365EduCloud=0
>set _ProPlus=0
>set _Standard=0
>set _Professional=0
>set _HomeBusiness=0
>set _HomeStudent=0
>set _ProPlus2019=0
>set _Standard2019=0
>set _Professional2019=0
>set _HomeBusiness2019=0
>set _HomeStudent2019=0
>set _ProPlus2021=0
>set _Standard2021=0
>set _Professional2021=0
>set _HomeBusiness2021=0
>set _HomeStudent2021=0
Microsoft 365 product is activated with a subscription.
>if 0 EQU 1 (
for %a in (ProjectPro ProjectStd ProjectPro2019 ProjectStd2019 ProjectPro2021 ProjectStd2021) do set _%a=0
echo.
echo Microsoft Project is activated with a subscription.
)
>if 0 EQU 1 (
for %a in (VisioPro VisioStd VisioPro2019 VisioStd2019 VisioPro2021 VisioStd2021) do set _%a=0
echo.
echo Microsoft Visio is activated with a subscription.
)
>for %a in (ProPlus2021 ProjectPro2021 VisioPro2021 Standard2021 ProjectStd2021 VisioStd2021 Access2021 SkypeforBusiness2021 Excel2021 Outlook2021 PowerPoint2021 Publisher2021 Word2021 Professional2021 HomeBusiness2021 HomeStudent2021 ProPlus2019 ProjectPro2019 VisioPro2019 Standard2019 ProjectStd2019 VisioStd2019 Access2019 SkypeforBusiness2019 Excel2019 Outlook2019 PowerPoint2019 Publisher2019 Word2019 Professional2019 HomeBusiness2019 HomeStudent2019 Mondo ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word OneNote Professional HomeBusiness HomeStudent O365ProPlus O365Business O365SmallBusPrem O365HomePrem O365EduCloud ProPlus) do if !_%a! EQU 1 (set _C16Msg=1 )
>if !_ProPlus2021! EQU 1 (set _C16Msg=1 )
>if !_ProjectPro2021! EQU 1 (set _C16Msg=1 )
>if !_VisioPro2021! EQU 1 (set _C16Msg=1 )
>if !_Standard2021! EQU 1 (set _C16Msg=1 )
>if !_ProjectStd2021! EQU 1 (set _C16Msg=1 )
>if !_VisioStd2021! EQU 1 (set _C16Msg=1 )
>if !_Access2021! EQU 1 (set _C16Msg=1 )
>if !_SkypeforBusiness2021! EQU 1 (set _C16Msg=1 )
>if !_Excel2021! EQU 1 (set _C16Msg=1 )
>if !_Outlook2021! EQU 1 (set _C16Msg=1 )
>if !_PowerPoint2021! EQU 1 (set _C16Msg=1 )
>if !_Publisher2021! EQU 1 (set _C16Msg=1 )
>if !_Word2021! EQU 1 (set _C16Msg=1 )
>if !_Professional2021! EQU 1 (set _C16Msg=1 )
>if !_HomeBusiness2021! EQU 1 (set _C16Msg=1 )
>if !_HomeStudent2021! EQU 1 (set _C16Msg=1 )
>if !_ProPlus2019! EQU 1 (set _C16Msg=1 )
>if !_ProjectPro2019! EQU 1 (set _C16Msg=1 )
>if !_VisioPro2019! EQU 1 (set _C16Msg=1 )
>if !_Standard2019! EQU 1 (set _C16Msg=1 )
>if !_ProjectStd2019! EQU 1 (set _C16Msg=1 )
>if !_VisioStd2019! EQU 1 (set _C16Msg=1 )
>if !_Access2019! EQU 1 (set _C16Msg=1 )
>if !_SkypeforBusiness2019! EQU 1 (set _C16Msg=1 )
>if !_Excel2019! EQU 1 (set _C16Msg=1 )
>if !_Outlook2019! EQU 1 (set _C16Msg=1 )
>if !_PowerPoint2019! EQU 1 (set _C16Msg=1 )
>if !_Publisher2019! EQU 1 (set _C16Msg=1 )
>if !_Word2019! EQU 1 (set _C16Msg=1 )
>if !_Professional2019! EQU 1 (set _C16Msg=1 )
>if !_HomeBusiness2019! EQU 1 (set _C16Msg=1 )
>if !_HomeStudent2019! EQU 1 (set _C16Msg=1 )
>if !_Mondo! EQU 1 (set _C16Msg=1 )
>if !_ProjectPro! EQU 1 (set _C16Msg=1 )
>if !_VisioPro! EQU 1 (set _C16Msg=1 )
>if !_Standard! EQU 1 (set _C16Msg=1 )
>if !_ProjectStd! EQU 1 (set _C16Msg=1 )
>if !_VisioStd! EQU 1 (set _C16Msg=1 )
>if !_Access! EQU 1 (set _C16Msg=1 )
>if !_SkypeforBusiness! EQU 1 (set _C16Msg=1 )
>if !_Excel! EQU 1 (set _C16Msg=1 )
>if !_Outlook! EQU 1 (set _C16Msg=1 )
>if !_PowerPoint! EQU 1 (set _C16Msg=1 )
>if !_Publisher! EQU 1 (set _C16Msg=1 )
>if !_Word! EQU 1 (set _C16Msg=1 )
>if !_OneNote! EQU 1 (set _C16Msg=1 )
>if !_Professional! EQU 1 (set _C16Msg=1 )
>if !_HomeBusiness! EQU 1 (set _C16Msg=1 )
>if !_HomeStudent! EQU 1 (set _C16Msg=1 )
>if !_O365ProPlus! EQU 1 (set _C16Msg=1 )
>if !_O365Business! EQU 1 (set _C16Msg=1 )
>if !_O365SmallBusPrem! EQU 1 (set _C16Msg=1 )
>if !_O365HomePrem! EQU 1 (set _C16Msg=1 )
>if !_O365EduCloud! EQU 1 (set _C16Msg=1 )
>if !_ProPlus! EQU 1 (set _C16Msg=1 )
>if 0 EQU 1 (
echo.
echo Converting Office C2R Retail-to-Volume:
)
>if 0 EQU 0 (if 0 EQU 1 (goto :R15V ) else (goto :GVLKC2R ) )
>if 1 EQU 1 (for %a in (ProPlus2021 ProjectPro2021 VisioPro2021 Standard2021 ProjectStd2021 VisioStd2021 Access2021 SkypeforBusiness2021 Excel2021 Outlook2021 PowerPoint2021 Publisher2021 Word2021 Professional2021 HomeBusiness2021 HomeStudent2021 ProPlus2019 ProjectPro2019 VisioPro2019 Standard2019 ProjectStd2019 VisioStd2019 Access2019 SkypeforBusiness2019 Excel2019 Outlook2019 PowerPoint2019 Publisher2019 Word2019 Professional2019 HomeBusiness2019 HomeStudent2019 Mondo ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word OneNote Professional HomeBusiness HomeStudent O365ProPlus O365Business O365SmallBusPrem O365HomePrem O365EduCloud ProPlus) do set "_%a=" )
>set "_ProPlus2021="
>set "_ProjectPro2021="
>set "_VisioPro2021="
>set "_Standard2021="
>set "_ProjectStd2021="
>set "_VisioStd2021="
>set "_Access2021="
>set "_SkypeforBusiness2021="
>set "_Excel2021="
>set "_Outlook2021="
>set "_PowerPoint2021="
>set "_Publisher2021="
>set "_Word2021="
>set "_Professional2021="
>set "_HomeBusiness2021="
>set "_HomeStudent2021="
>set "_ProPlus2019="
>set "_ProjectPro2019="
>set "_VisioPro2019="
>set "_Standard2019="
>set "_ProjectStd2019="
>set "_VisioStd2019="
>set "_Access2019="
>set "_SkypeforBusiness2019="
>set "_Excel2019="
>set "_Outlook2019="
>set "_PowerPoint2019="
>set "_Publisher2019="
>set "_Word2019="
>set "_Professional2019="
>set "_HomeBusiness2019="
>set "_HomeStudent2019="
>set "_Mondo="
>set "_ProjectPro="
>set "_VisioPro="
>set "_Standard="
>set "_ProjectStd="
>set "_VisioStd="
>set "_Access="
>set "_SkypeforBusiness="
>set "_Excel="
>set "_Outlook="
>set "_PowerPoint="
>set "_Publisher="
>set "_Word="
>set "_OneNote="
>set "_Professional="
>set "_HomeBusiness="
>set "_HomeStudent="
>set "_O365ProPlus="
>set "_O365Business="
>set "_O365SmallBusPrem="
>set "_O365HomePrem="
>set "_O365EduCloud="
>set "_ProPlus="
>if 0 EQU 1 (for %a in (ProPlus) do set "_%a=" )
>set "_qr=wmic path SoftwareLicensingService where version='10.0.22000.348' call RefreshLicenseStatus"
>if 0 NEQ 0 set "_qr=cscript.exe //NoLogo //Job:WmiMethod "KMS_VL_ALL_AIO.cmd?.wsf" "SoftwareLicensingService.Version='10.0.22000.348'" RefreshLicenseStatus"
>if 22000 GEQ 9200 wmic path SoftwareLicensingService where version='10.0.22000.348' call RefreshLicenseStatus
Executando (\\DESKTOP-I5PF3TO\root\cimv2:SoftwareLicensingService.Version="10.0.22000.348")->RefreshLicenseStatus()
O método foi executado com êxito.
Parâmetros de saída:
instance of __PARAMETERS
{
};
>if exist "C:\WINDOWS\System32\spp\store_test\2.0\tokens.dat" if defined _copp (cscript //Nologo C:\WINDOWS\System32\slmgr.vbs /rilc )
>goto :sppoff
>set OffUWP=0
>if 22000 GEQ 10240 reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msoxmled.exe" && (
dir /b "C:\Program Files\WindowsApps\Microsoft.Office.Desktop*" && set OffUWP=1
if not x64 == x86 dir /b "C:\Program Files\WindowsApps\Microsoft.Office.Desktop*" && set OffUWP=1
)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\msoxmled.exe
(padrão) REG_SZ C:\Program Files\Microsoft Office\Root\VFS\ProgramFilesCommonX64\Microsoft Shared\OFFICE16\MSOXMLED.EXE
UseURL REG_SZ 1
Arquivo não encontrado
Arquivo não encontrado
>rem nothing installed
>if 1 EQU 0 if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 (
if 0 EQU 0 (echo. & echo No Installed Office 2013-2021 Product Detected... ) else (echo. & echo Detected Office 365/2016 UWP is not supported by KMS_VL_ALL )
exit /b
)
>set Off1ce=1
>set _sC2R=sppoff
>set _fC2R=ReturnSPP
>set vol_off15=0 & set vol_off16=0 & set vol_off19=0 & set vol_off21=0
>set "_qr=wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' AND NOT Name like '%MondoR_KMS_Automation%' ) get Name /value"
>wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' AND NOT Name like '%MondoR_KMS_Automation%' ) get Name /value 1>"!_temp!\sppchk.txt" 2>&1
>find /i "Office 21" "!_temp!\sppchk.txt" && (set vol_off21=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>find /i "Office 19" "!_temp!\sppchk.txt" && (set vol_off19=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>find /i "Office 16" "!_temp!\sppchk.txt" && (set vol_off16=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>find /i "Office 15" "!_temp!\sppchk.txt" && (set vol_off15=1 )
---------- C:\WINDOWS\TEMP\SPPCHK.TXT
>for %A in (15 16 19 21) do if !loc_off%A! EQU 0 set vol_off%A=0
>if !loc_off15! EQU 0 set vol_off15=0
>if !loc_off16! EQU 0 set vol_off16=0
>if !loc_off19! EQU 0 set vol_off19=0
>if !loc_off21! EQU 0 set vol_off21=0
>set "_qr=wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%'" get LicenseFamily /value"
>if 0 EQU 1 find /i "Office16MondoVL_KMS_Client" "!_temp!\sppchk.txt" && (wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%'" get LicenseFamily /value | find /i "O365" || (set vol_off16=0 ) )
>set "_qr=wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'OfficeO365%'" get LicenseFamily /value"
>if 0 EQU 1 find /i "OfficeMondoVL_KMS_Client" "!_temp!\sppchk.txt" && (wmic path SoftwareLicensingProduct where "ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'OfficeO365%'" get LicenseFamily /value | find /i "O365" || (set vol_off15=0 ) )
>set ret_off15=0 & set ret_off16=0 & set ret_off19=0 & set ret_off21=0
>set "_qr=wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND NOT Name like '%O365%' ) get Name /value"
>wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND NOT Name like '%O365%' ) get Name /value 1>"!_temp!\sppchk.txt" 2>&1
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 21" && (set ret_off21=1 )
Name=Office 21, Office21ProPlus2021MSDNR_Retail edition
Name=Office 21, Office21ProPlus2021R_Retail edition
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 19" && (set ret_off19=1 )
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 16" && (set ret_off16=1 )
>find /i "R_Retail" "!_temp!\sppchk.txt" | find /i "Office 15" && (set ret_off15=1 )
>if 1 EQU 1 if 0 EQU 0 set vol_off21=0
>if 0 EQU 1 if 0 EQU 0 set vol_off19=0
>if 0 EQU 1 if 0 EQU 0 set vol_off16=0
>if 0 EQU 1 if 0 EQU 0 set vol_off15=0
>set run_off16=0
>if defined _C16R if 0 EQU 1 if 0 EQU 0 if 0 EQU 1 (
for %a in (ProPlus ProjectPro VisioPro Standard ProjectStd VisioStd Access SkypeforBusiness Excel Outlook PowerPoint Publisher Word) do find /i "Office16%aR" "!_temp!\sppchk.txt" && (
if 0 EQU 1 find /i "Office21%a2021VL" "!_temp!\sppchk.txt" || set run_off16=1
if 0 EQU 1 find /i "Office19%a2019VL" "!_temp!\sppchk.txt" || set run_off16=1
)
for %a in (Professional) do find /i "Office16%aR" "!_temp!\sppchk.txt" && (
if 0 EQU 1 find /i "Office21ProPlus2021VL" "!_temp!\sppchk.txt" || set run_off16=1
if 0 EQU 1 find /i "Office19ProPlus2019VL" "!_temp!\sppchk.txt" || set run_off16=1
)
for %a in (HomeBusiness HomeStudent) do find /i "Office16%aR" "!_temp!\sppchk.txt" && (
if 0 EQU 1 find /i "Office21Standard2021VL" "!_temp!\sppchk.txt" || set run_off16=1
if 0 EQU 1 find /i "Office19Standard2019VL" "!_temp!\sppchk.txt" || set run_off16=1
)
)
>set "_qr=wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%' ) get LicenseFamily /value"
>if defined _C16R if 0 EQU 1 if 0 EQU 0 wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' AND LicenseFamily like 'Office16O365%' ) get LicenseFamily /value | find /i "O365" && (find /i "Office16MondoVL" "!_temp!\sppchk.txt" || set run_off16=1 )
>set vol_offgl=1
>if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 if 0 EQU 0 set vol_offgl=0
>rem mixed Volume + Retail
>if 1 EQU 1 if 0 EQU 0 if 1 EQU 0 if 1 EQU 1 goto :C2RR2V
>if 0 EQU 1 if 0 EQU 0 if 1 EQU 0 if 1 EQU 1 goto :C2RR2V
>if defined _C16R if 0 EQU 1 if 0 EQU 0 if 1 EQU 0 if 1 EQU 1 if 0 EQU 1 goto :C2RR2V
>if defined _C15R if 0 EQU 1 if 0 EQU 0 if 1 EQU 0 if 1 EQU 1 goto :C2RR2V
>if 0 EQU 0 if 0 EQU 1 if 0 EQU 0 if 0 EQU 1 (echo. & echo Detected Office 365/2016 UWP is not supported by KMS_VL_ALL )
>rem all supported Volume + message for unsupported
>if 0 EQU 1 (
if 0 EQU 1 if 0 EQU 1 (echo. & echo Detected Office 2016 MSI Retail is not supported by KMS_VL_ALL )
if 0 EQU 1 if 0 EQU 1 (echo. & echo Detected Office 2013 MSI Retail is not supported by KMS_VL_ALL )
exit /b
)
>set Off1ce=0
>rem Retail C2R
>if 1 EQU 0 if 1 EQU 1 goto :C2RR2V
>rem Retail MSI/C2R or failed C2R-R2V
>if 1 EQU 1 if 0 EQU 0 (if 0 EQU 1 (echo. & echo Detected Office 2021 C2R Retail is activated ) else (echo. & echo Detected Office 2021 C2R Retail could not be converted to Volume ) )
Detected Office 2021 C2R Retail could not be converted to Volume
>if 0 EQU 1 if 0 EQU 0 (if 0 EQU 1 (echo. & echo Detected Office 2019 C2R Retail is activated ) else (echo. & echo Detected Office 2019 C2R Retail could not be converted to Volume ) )
>if 0 EQU 1 if 0 EQU 0 (if defined _C16R (if 0 EQU 1 (echo. & echo Detected Office 2016 C2R Retail is activated ) else (echo. & echo Detected Office 2016 C2R Retail could not be converted to Volume ) ) else if 0 EQU 1 (if 0 EQU 1 echo. & echo Detected Office 2016 MSI Retail is not supported by KMS_VL_ALL ) )
>if 0 EQU 1 if 0 EQU 0 (if defined _C15R (if 0 EQU 1 (echo. & echo Detected Office 2013 C2R Retail is activated ) else (echo. & echo Detected Office 2013 C2R Retail could not be converted to Volume ) ) else if 0 EQU 1 (if 0 EQU 1 echo. & echo Detected Office 2013 MSI Retail is not supported by KMS_VL_ALL ) )
>exit /b
>set "_qr=wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' ) get Name /value"
>wmic path SoftwareLicensingProduct where (Description like '%KMSCLIENT%' ) get Name /value | findstr /i Windows && (set WinVL=1 )
Name=Windows(R), Professional edition
Name=Windows(R), ProfessionalEducation edition
Name=Windows(R), Enterprise edition
Name=Windows(R), ProfessionalWorkstation edition
Name=Windows(R), CloudEdition edition
Name=Windows(R), Education edition
Name=Windows(R), ServerRdsh edition
Name=Windows(R), ServerRdsh edition
>if 1 EQU 0 (if 0 EQU 0 (echo. & echo Windows activation is OFF... ) else (if 1 EQU 0 (echo. & echo Windows 10 Pro does not support KMS activation...
if defined _eval echo Evaluation Editions cannot be activated. Please install full Windows OS. ) else (echo. & echo Failed checking KMS Activation ID(s) for Windows. & echo Either sppsvc service or SppExtComObjHook.dll is not functional. & echo See Read Me for troubleshooting.
exit /b ) ) )
>if 1 EQU 0 if 0 EQU 0 exit /b
>if 0 EQU 0 (
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f" /f 1>nul 2>nul
rem reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f 1>nul 2>nul
reg delete "HKU\S-1-5-20\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f" /f 1>nul 2>nul
reg delete "HKU\S-1-5-20\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f 1>nul 2>nul
)
>set _gvlk=0
>set "_qr=wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' and PartialProductKey is not NULL) get Name /value"
>if 22000 GEQ 10240 wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' and PartialProductKey is not NULL) get Name /value | findstr /i Windows && (set _gvlk=1 )
Nenhuma instância disponível.
>set gpr=0
>set "_qr="wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' and PartialProductKey is not NULL) get GracePeriodRemaining /value""
>if 22000 GEQ 10240 if 1 NEQ 0 if 0 EQU 1 for /F "tokens=2 delims==" %A in ('"wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' and PartialProductKey is not NULL) get GracePeriodRemaining /value" ') do set "gpr=%A"
>set "_qr=wmic path SoftwareLicensingProduct where "ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' and PartialProductKey is not NULL" get LicenseFamily /value"
>if 0 NEQ 0 if 0 GTR 259200 (
set W1nd0ws=0
wmic path SoftwareLicensingProduct where "ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' and PartialProductKey is not NULL" get LicenseFamily /value | findstr /i EnterpriseG && (call set W1nd0ws=1 )
)
>set "_qr="wmic path SoftwareLicensingService get Version /value""
>for /F "tokens=2 delims==" %A in ('"wmic path SoftwareLicensingService get Version /value"') do set slsv=%A
>set slsv=10.0.22000.348
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0"
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServicePort /t REG_SZ /d "1688"
A operação foi concluída com êxito.
>if 22000 GEQ 9200 (
if not x64 == x86 (
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0" /reg:32
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServicePort /t REG_SZ /d "1688" /reg:32
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /reg:32 1>nul 2>nul
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0" /reg:32
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServicePort /t REG_SZ /d "1688" /reg:32
)
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f 1>nul 2>nul
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0"
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServicePort /t REG_SZ /d "1688"
)
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
>set "_qr="wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' ) get ID /value""
>if 1 EQU 0 for /F "tokens=2 delims==" %G in ('"wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' ) get ID /value"') do (set app=%G & call :sppchkwin )
>set "_qr="wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' ) get ID /value""
>if 1 EQU 1 if 0 NEQ 0 for /F "tokens=2 delims==" %G in ('"wmic path SoftwareLicensingProduct where (ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' and Description like '%KMSCLIENT%' ) get ID /value"') do (set app=%G & call :sppchkwin )
>if 1 EQU 1 if 0 EQU 0 (echo. & echo Windows activation is OFF... )
Windows activation is OFF...
>set "_qr="wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' and Description like '%KMSCLIENT%' ) get ID /value""
>if 0 EQU 1 if 1 NEQ 0 for /F "tokens=2 delims==" %G in ('"wmic path SoftwareLicensingProduct where (ApplicationID='0ff1ce15-a989-479d-af46-f275c6370663' and Description like '%KMSCLIENT%' ) get ID /value"') do (set app=%G & call :sppchkoff )
>if 0 EQU 0 (call :cREG ) else (
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v DisableDnsPublishing 1>nul 2>nul
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v DisableKeyManagementServiceHostCaching 1>nul 2>nul
)
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0"
A operação foi concluída com êxito.
>reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServicePort /t REG_SZ /d "1688"
A operação foi concluída com êxito.
>reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v DisableDnsPublishing
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v DisableKeyManagementServiceHostCaching
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f" /f
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 22000 GEQ 9200 (
if not x64 == x86 (
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0" /reg:32
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /f /v KeyManagementServicePort /t REG_SZ /d "1688" /reg:32
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /reg:32
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0" /reg:32
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServicePort /t REG_SZ /d "1688" /reg:32
)
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServiceName /t REG_SZ /d "0.0.0.0"
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f /v KeyManagementServicePort /t REG_SZ /d "1688"
)
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
A operação foi concluída com êxito.
>if 22000 GEQ 9600 (
reg delete "HKU\S-1-5-20\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f" /f
reg delete "HKU\S-1-5-20\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /f
)
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if 0 EQU 0 (goto :eof )
>exit /b
>if 1 NEQ 0 call :RunOSPP
>set spp=OfficeSoftwareProtectionProduct
>set sps=OfficeSoftwareProtectionService
>set Off1ce=0
>set RunR2V=0
>set aC2R21=0
>set aC2R19=0
>set aC2R16=0
>set aC2R15=0
>if 22000 LSS 9200 (set "aword=2010-2021" ) else (set "aword=2010" )
>if 0 EQU 0 (echo. & echo No Installed Office 2010 Product Detected... & exit /b )
No Installed Office 2010 Product Detected...
>if 1 EQU 0 (echo. & echo Office activation is OFF... )
>if 1 EQU 0 if 0 EQU 0 call :CheckFR
>if exist "!_temp!\crv*.txt" del /f /q "!_temp!\crv*.txt"
>if exist "!_temp!\*chk.txt" del /f /q "!_temp!\*chk.txt"
>if exist "!_temp!\slmgr.vbs" del /f /q "!_temp!\slmgr.vbs"
>call :StopService sppsvc
>sc query sppsvc | find /i "STOPPED" || net stop sppsvc /y
O serviço de Proteção de Software está sendo finalizado .
O serviço de Proteção de Software foi finalizado com êxito.
>sc query sppsvc | find /i "STOPPED" || sc stop sppsvc
ESTADO : 1 STOPPED
>goto :eof
>if 0 NEQ 0 call :StopService osppsvc
>if 0 EQU 0 call :RemoveHook
>if No == Yes (
set "_para=/d /r"
goto :DoDebug
)
>set "RemExc="
>set "_qr=WMIC /NAMESPACE:\\root\Microsoft\Windows\Defender PATH MSFT_MpPreference call Remove ExclusionPath="C:\WINDOWS\System32\SppExtComObjHook.dll" Force=True"
>if 0 NEQ 0 set "_qr=cscript.exe //NoLogo //Job:MPS "KMS_VL_ALL_AIO.cmd?.wsf" Remove "C:\WINDOWS\System32\SppExtComObjHook.dll""
>if 22000 GEQ 9600 (
for %# in (NoGenTicket NoAcquireGT) do reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v %# /f 1>nul 2>nul
WMIC /NAMESPACE:\\root\Microsoft\Windows\Defender PATH MSFT_MpPreference call Remove ExclusionPath="C:\WINDOWS\System32\SppExtComObjHook.dll" Force=True && set "RemExc= and Windows Defender exclusions"
)
>reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoGenTicket /f 1>nul 2>nul
>reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoAcquireGT /f 1>nul 2>nul
Executando (MSFT_MpPreference)->Remove()
O método foi executado com êxito.
>if 0 EQU 1 (
if 0 EQU 0 if 1 EQU 0 (
mode con cols=100 lines=32
powershell -nop -c "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=31;$B.Height=300;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}"
)
echo. & echo ____________________________________________________________ & echo.
echo Uninstalling Local KMS Emulator...
echo.
echo Removing Files and Windows Defender exclusions...
)
>for %# in (SppExtComObjHookAvrf.dll SppExtComObjHook.dll SppExtComObjPatcher.dll SppExtComObjPatcher.exe) do if exist "C:\WINDOWS\System32\%#" (
if 0 EQU 1 echo C:\WINDOWS\System32\%#
del /f /q "C:\WINDOWS\System32\%#"
)
>if exist "C:\WINDOWS\System32\SppExtComObjHookAvrf.dll" (
if 0 EQU 1 echo C:\WINDOWS\System32\SppExtComObjHookAvrf.dll
del /f /q "C:\WINDOWS\System32\SppExtComObjHookAvrf.dll"
)
>if exist "C:\WINDOWS\System32\SppExtComObjHook.dll" (
if 0 EQU 1 echo C:\WINDOWS\System32\SppExtComObjHook.dll
del /f /q "C:\WINDOWS\System32\SppExtComObjHook.dll"
)
>if exist "C:\WINDOWS\System32\SppExtComObjPatcher.dll" (
if 0 EQU 1 echo C:\WINDOWS\System32\SppExtComObjPatcher.dll
del /f /q "C:\WINDOWS\System32\SppExtComObjPatcher.dll"
)
>if exist "C:\WINDOWS\System32\SppExtComObjPatcher.exe" (
if 0 EQU 1 echo C:\WINDOWS\System32\SppExtComObjPatcher.exe
del /f /q "C:\WINDOWS\System32\SppExtComObjPatcher.exe"
)
>for %# in (SppExtComObjHookAvrf.dll SppExtComObjHook.dll SppExtComObjPatcher.dll SppExtComObjPatcher.exe) do if exist "C:\WINDOWS\SysWOW64\%#" (
if 0 EQU 1 echo C:\WINDOWS\SysWOW64\%#
del /f /q "C:\WINDOWS\SysWOW64\%#"
)
>if exist "C:\WINDOWS\SysWOW64\SppExtComObjHookAvrf.dll" (
if 0 EQU 1 echo C:\WINDOWS\SysWOW64\SppExtComObjHookAvrf.dll
del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjHookAvrf.dll"
)
>if exist "C:\WINDOWS\SysWOW64\SppExtComObjHook.dll" (
if 0 EQU 1 echo C:\WINDOWS\SysWOW64\SppExtComObjHook.dll
del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjHook.dll"
)
>if exist "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.dll" (
if 0 EQU 1 echo C:\WINDOWS\SysWOW64\SppExtComObjPatcher.dll
del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.dll"
)
>if exist "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.exe" (
if 0 EQU 1 echo C:\WINDOWS\SysWOW64\SppExtComObjPatcher.exe
del /f /q "C:\WINDOWS\SysWOW64\SppExtComObjPatcher.exe"
)
>if exist C:\WINDOWS\Migration\WTR\KMS_VL_ALL.inf (
if 0 EQU 1 echo C:\WINDOWS\Migration\WTR\KMS_VL_ALL.inf
del /f /q C:\WINDOWS\Migration\WTR\KMS_VL_ALL.inf
)
>if 0 EQU 1 (
echo.
echo Removing Registry Keys...
)
>for %# in (SppExtComObj.exe sppsvc.exe osppsvc.exe) do reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%#" && (call :RemoveIFEOEntry %# )
>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" && (call :RemoveIFEOEntry SppExtComObj.exe )
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe
VerifierDlls REG_SZ SppExtComObjHook.dll
VerifierDebug REG_DWORD 0x0
VerifierFlags REG_DWORD 0x80000000
GlobalFlag REG_DWORD 0x100
KMS_Emulation REG_DWORD 0x1
KMS_ActivationInterval REG_DWORD 0xa8c0
KMS_RenewalInterval REG_DWORD 0xa8c0
KMS_HWID REG_QWORD 0x3a1c049600b60076
>if 0 EQU 1 (echo [HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe] )
>if /I SppExtComObj.exe NEQ osppsvc.exe (
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f 1>nul 2>nul
goto :eof
)
>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sppsvc.exe" && (call :RemoveIFEOEntry sppsvc.exe )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe" && (call :RemoveIFEOEntry osppsvc.exe )
ERRO: O sistema não pôde localizar a chave do Registro ou valor especificado.
>if Win8 EQU Win8 schtasks /query /tn "\Microsoft\Windows\SoftwareProtectionPlatform\SvcTrigger" && (
if 0 EQU 1 (
echo.
echo Removing Schedule Task...
echo \Microsoft\Windows\SoftwareProtectionPlatform\SvcTrigger
)
schtasks /delete /f /tn "\Microsoft\Windows\SoftwareProtectionPlatform\SvcTrigger"
)
ERRO: O sistema não pode encontrar o arquivo especificado.
>goto :eof
>sc start sppsvc trigger=timer;sessionid=0
NOME_DO_SERVIÇO: sppsvc
TIPO : 10 WIN32_OWN_PROCESS
ESTADO : 2 START_PENDING
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
CÓDIGO_DE_SAÍDA_DO_WIN32 : 0 (0x0)
CÓDIGO_DE_SAÍDA_DO_SERVIÇO : 0 (0x0)
PONTO_DE_VERIFICAÇÃO : 0x1
AGUARDAR_DICA : 0x4e20
PID : 20552
SINALIZADORES :
>if 0 EQU 1 (echo. & echo ____________________________________________________________ & echo.
if 0 EQU 0 if "ReturnHook" == "DoActivate" (
echo.
echo Make sure to exclude this file in the Antivirus protection.
echo C:\WINDOWS\System32\SppExtComObjHook.dll
) )
>set External=0
>set KMS_IP=0.0.0.0
>if 0 EQU 1 timeout 5
>if 0 EQU 1 timeout 5
>if 1 NEQ 0 goto :TheEnd
>if exist "C:\Users\Public\ReadMeAIO.html" del /f /q "C:\Users\Public\ReadMeAIO.html"
>if exist "C:\WINDOWS\Temp\'" del /f /q "C:\WINDOWS\Temp\'"
>if exist "C:\WINDOWS\Temp\`.txt" del /f /q "C:\WINDOWS\Temp\`.txt"
>if defined _quit goto :eof
>echo.
>if 1 EQU 0 echo Press any key to exit.
>goto :eof
Trojan:Win32/Spursint.F!cl
It doesn't work for me for some reason
debug.log
I followed the steps of the guide and everything runs smoothly. The only problem is that when I ran the scheduled antivirus check with Malware Bytes it showed me an alarm about a file name Floxif.Virus.FileInfector.DDS with it's source being KMSCleaner.exe .
I know false positives are normal but I cant find KMSCleaner.exe anywhere in the command line, where would this have come from? Is this file supposed to be there?
after using Microsoft scrubber and deleting everything, this problem persists. any solution please
Hello,
I am really sorry for bothering you.
Could you tell me which :sections of the script gets executed for the option 3 uninstall?
I'm tryna evade an AV detection which I can't disable and would like to try to run just the uninstall part.
Thank you.
How does this script handle a scenario where a windows update deactivates windows?
Am i blind or there is no zip password?
While trying activating windows/office (option 1 manually and option 2 auto-renewal) gave the same error, i'm using v44 tho, but anyone know why it happen? Auto-renewal already put exclusion on Windows Defender right?
my friend is getting this issue when starting the cmd is there any way we can fix this ? thanks.
*** Windows Status ***
Name: Windows(R), Professional edition
Description: Windows(R) Operating System, RETAIL channel
Activation ID: 4de7cb65-cdf1-4de9-8ae8-e3cce27b9f2c
Extended PID: 03612-03308-000-000000-00-2052-22000.0000-0362022
Product Key Channel: Retail
Partial Product Key: 3V66T
License Status: Notification
Notification Reason: 0xC004F034
Press any key to continue...
what is the problem? how can I handle this?
Just found it on my computer and was wondering. Windows security thinks its a threat.
ignore
I have just tried to use the latest v41r and Windows Defender raised a flag. I remember that it didn't happen when I tried with an older version few months ago. To check that, I downloaded a few older ones and kept on checking. It seems till v40, everything is okay, Defender doesn't raise anything. But since v41, it's being flagged as virus or unwanted program.
Can you fix this issues, I added that file to Kaspersky Security Cloud exclusion but can't OK
Thanks!
the previous 47 version do correctly....... here on 48 no.
Step to reproduce:
1- open KMS... 48.cmd.
2- Change one setting.... like disable "Process Windows [YES]" -> "Process Windows [NO]"
3- After that Exit whit "0"
If you run again .cmd the setting just changed returns to the default state.
On KMS VL ALL 47 it's be saved this preferences correctly..........
I don't have idea how this setting as been stored :)
Please advise on what to do next.
I'm getting black screen while on full load and then come back to normal. Very strange issue from a client, I'll check out drivers, software, updates, monitor and hardware. If anyone got the same issue please report
I am unable to activate Office 2010 Pro Plus x86 VL in windows 10 20H2.
Here is the Command Prompt answer :
Activating: Office 14, OfficeProPlus-KMS_Client edition
Product Activation Failed: 0xC004F074
Remaining Period: 0 days (0 minutes)
==== ERROR ====
SHA1 hash verification mismatch.
"C:\WINDOWS\System32\SppExtComObjHook.dll"
Expected: 0ca83cdd18845d77e0775f299a111a0591d86883
Detected: 59962e7aa52cc3b79a8ca9c63bea80bda8bfc9ea
If you compiled the file yourself, then ignore this message.
==== ERROR ====
Some or all required registry values are missing.
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe]
VerifierDlls, VerifierDebug, VerifierFlags, GlobalFlag, KMS_Emulation
Verify that Antivirus protection is OFF or the registry path is excluded.
==== ERROR ====
Some or all required registry values are missing.
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\osppsvc.exe]
VerifierDlls, VerifierDebug, VerifierFlags, GlobalFlag, KMS_Emulation
Verify that Antivirus protection is OFF or the registry path is excluded.
Press any key to exit.
Any hint on what is wrong ? How to get around ?
Hi,
with the new version (0.49) the option "Checks the current activation state by wmic" don't work.
When I choose this option, it starts and immediately closes the program completely ?!
Thanks for your help.
Hi, I used the script for my desktop running windows 10 pro and for the office 2019, after activating, it just happened to error to Bsod with error: memory management, happened 2 times already in span of 5minutes. Then I decided to uninstall the script on the main kms activator too, then the issue was now gone. Read about memory management issue that it was cause by Windows build config issue, before the Kms, havent experienced and bsod or anything. What do you think is the issue here?
I tried several activators including the ones from ratiborus, daz loader, microsoft toolkit and none of them can activate windows 7 home premium N x64 i have here. Is there a reason for this?
Please explain me.
Failed checking KMS Activation ID(s) for Windows.
Either sppsvc service or SppExtComObjHook.dll is not functional.
tried MAS as well - same error.
any fix for this?
After downloading and using this to active MS Office, Windows Defender flagged a threat called "Win32/Uwamson.A!ml". Different google results indicate that this is either a trojan, ransomware or just a false positive. I was able to quarantine and remove it without any problems, but I thought I'd bring it up here just in case.
I think your activator is excellent, but why not include HWID activation too?
My best regards.
Can this app be made to activate Windows 10 LTSC 2021 ?
this is the error in CMD
"Windows 10 Enterprise LTSC 2021 Evaluation does not support KMS activation...
Evaluation Editions cannot be activated. Please install full Windows OS."
Could we also get two separate scripts for Windows and Office along with " KMS_VL_ALL_AIO.cmd ".
I know the ability to turn off each one is available but two separate scripts is better.
:: change to 0 to turn OFF Windows or Office activation processing via the script
set ActWindows=1
set ActOffice=1
file: C:\T\To\Chrome\KMS_VL_ALL_AIO-master.zip.crdownload
file: C:\T\To\Chrome\KMS_VL_ALL_AIO-master.zip
webfile: C:\T\To\Chrome\KMS_VL_ALL_AIO-master.zip|https://codeload.github.com/abbodi1406/KMS_VL_ALL_AIO/zip/refs/heads/master|
Let me guess - one of :embdbin: blocks ?
I am unable to activate office 2021. Here's the error:
Activation Mode: Auto Renewal
Windows activation is OFF...
Activating: Office 21, Office21ProPlus2021VL_KMS_Client_AE edition
Product Activation Failed: 0x80080005
Remaining Period: 30 days (43166 minutes)
No Installed Office 2010 Product Detected...
==== ERROR ====
SHA1 hash verification failed.
"C:\WINDOWS\System32\SppExtComObjHook.dll"
Expected: 684103f5c312ae956e66a02b965d9aad59710745
Detected: =
Verify that Antivirus protection is OFF or the file path is excluded.
I use as antivirus Bitdefend but it's disabled. Any hint on what is wrong ?
As the title says, i am getting a lot of the "Office not original" banner in several installations lately, all of them were setup with option number 2 "Install Activation Auto-Renewal".
Hi
cannot active windows 10 Enterprise LTSC x64 ( 1809.17763.1971 ) with hwid
i want select hwid activition
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.