老大叔博客:https://nolon.xyz

前几天发现office2016过期了,曾经听说kms里面可能包含木马,于是尝试用别的方法破解一下office,在网上发现了一个很好用的脚本,只要打开记事本,写上以下命令,点击保存为.bat文件,然后双击运行,office即可破解。

@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

这个脚本也是利用了kms服务器来获取破解,只不过这个脚本更加方便、安全。

出处:https://segmentfault.com/a/1190000018103742

=====================================================

1,管理员用户打开powershell,或者cmd
2,确认office安装目录 
3,输入命令
     32位系统装32位office或者64位系统装64位office命令:

cd “C:Program FilesMicrosoft OfficeOffice16”

64位系统装32位office命令:

cd “C:Program Files (x86)Microsoft OfficeOffice16”

 

cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99

or

【Office Professional Plus 2016:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99】

【Office Standard 2016:JNRGM-WHDWX-FJJG3-K47QV-DRTFM】

 

设置kms服务器:cscript ospp.vbs
/sethst:kms.03k.org

立即激活:cscript ospp.vbs
/act

查看激活状态:cscript ospp.vbs
/dstatus

出处:http://blog.sina.com.cn/s/blog_17a8925340102ynpj.html