1、新建文本文档
2、复制以下代码到文本文档中
@echo off
(cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1
title Office 2019 Activator r/Piracy
echo Converting... & mode 40,25
(if exist "%ProgramFiles%Microsoft OfficeOffice16ospp.vbs" cd /d "%ProgramFiles%Microsoft OfficeOffice16")&(if exist "%ProgramFiles(x86)%Microsoft OfficeOffice16ospp.vbs" cd /d "%ProgramFiles(x86)%Microsoft OfficeOffice16")&(for /f %%x in ('dir /b ..
ootLicenses16ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..
ootLicenses16\%%x" >nul)&(for /f %%x in ('dir /b ..
ootLicenses16ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..
ootLicenses16\%%x" >nul)
cscript //nologo ospp.vbs /unpkey:6MWKP >nul&cscript //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul&set i=1
:server
if %i%==1 set KMS_Sev=kms7.MSGuides.com
if %i%==2 set KMS_Sev=kms8.MSGuides.com
if %i%==3 set KMS_Sev=kms9.MSGuides.com
cscript //nologo ospp.vbs /sethst:%KMS_Sev% >nul
echo %KMS_Sev% & echo Activating...
cscript //nologo ospp.vbs /act | find /i "successful" && (echo Complete) || (echo Trying another KMS Server & set /a i+=1 & goto server)
pause >nul
exit
3、更改文本文档后缀名为.bat
4、鼠标右键以管理员身份运行
5、等待运行结束即可
专业增强版 2019 激活方法
https://blog.csdn.net/pan_yuyuan/article/details/89792432
本文参考自他人,仅供学习交流。