Link to the original text: https://blog.csdn.net/godot06/article/details/94141854
The steps are as follows:
1. Create a new notepad file.txt on the computer (anywhere is ok)
2. Copy the following code to the new notepad file.txt, and save it
@echo off
title Activate Microsoft Visio 2019&cls&echo ==================== ================================================= ======&echo #Visio: Activating Microsoft software products for FREE without software&echo ================ ================================================= ==========&echo.&echo #Supported products:&echo-Microsoft Visio Standard 2019&echo-Microsoft Visio Professional Plus 2019&echo.&echo.&(if exist "< /span>%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd / d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\ Microsoft Office\Office16")&cscript //nologo ospp.vbs /inslic:"..\root\Licenses16\pkeyconfig-office.xrm-ms" >nul&(for /f %%x in ('dir /b ..\root\ Licenses16\client-issuance*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b. .\root\Licenses16\visioprovl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir / b ..\root\Licenses16\visiopro2019vl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ======== ================================================= ==================&echo is trying to activate...&cscript //nologo ospp.vbs /unpkey:7VCBB >nul&cscript // nologo ospp.vbs /inpkey:9BGNQ-K37YR-RQHF2-38RQ3-7VCBB >nul&set i=1
:server
if %i%==1 set KMS_Sev=kms8.MSGuides.com
if %i%==2 set KMS_Sev=kms9.MSGuides.com
if %i%==3 set KMS_Sev=kms7.MSGuides.com
if %i%==4 goto notsupported
cscript //nologo ospp.vbs /sethst:%KMS_Sev%> nul&echo =============================================== ===========================&echo.&echo.
cscript //nologo ospp.vbs /act | find /i "successful" && ( Echo has been completed, press any key to exit) || (echo failed to connect to KMS server! Trying to connect to another... & echo please wait... & echo. & echo. & set /a i+=1 & goto server) span>
pause >nul
exit
3. The Windows executable script file with .txt suffixed to .bat for the above notepad file
4. Right click Open the modified .bat file with administrator privileges
5. Wait patiently for a while, don’t think it is not executed, there will be a print record after a while
@echo off
title Activate Microsoft Visio 2019&cls&echo ==================== ================================================= ======&echo #Visio: Activating Microsoft software products for FREE without software&echo ================ ================================================= ==========&echo.&echo #Supported products:&echo-Microsoft Visio Standard 2019&echo-Microsoft Visio Professional Plus 2019&echo.&echo.&(if exist "< /span>%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd / d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\ Microsoft Office\Office16")&cscript //nologo ospp.vbs /inslic:"..\root\Licenses16\pkeyconfig-office.xrm-ms" >nul&(for /f %%x in ('dir /b ..\root\ Licenses16\client-issuance*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b. .\root\Licenses16\visioprovl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir / b ..\root\Licenses16\visiopro2019vl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo ======== ================================================= ==================&echo is trying to activate...&cscript //nologo ospp.vbs /unpkey:7VCBB >nul&cscript // nologo ospp.vbs /inpkey:9BGNQ-K37YR-RQHF2-38RQ3-7VCBB >nul&set i=1
:server
if %i%==1 set KMS_Sev=kms8.MSGuides.com
if %i%==2 set KMS_Sev=kms9.MSGuides.com
if %i%==3 set KMS_Sev=kms7.MSGuides.com
if %i%==4 goto notsupported
cscript //nologo ospp.vbs /sethst:%KMS_Sev%> nul&echo =============================================== ===========================&echo.&echo.
cscript //nologo ospp.vbs /act | find /i "successful" && ( Echo has been completed, press any key to exit) || (echo failed to connect to KMS server! Trying to connect to another... & echo please wait... & echo. & echo. & set /a i+=1 & goto server) span>
pause >nul
exit