个人笔记记录(常用)

个人笔记


利用KMS服务激活Office

<p>参考: <a href="https://www.jianshu.com/p/694763cadd14">https://www.jianshu.com/p/694763cadd14</a></p> <h4>搭建KMS服务器</h4> <p><a href="https://github.com/Wind4/vlmcsd/releases">https://github.com/Wind4/vlmcsd/releases</a></p> <pre><code>wget https://github.com/Wind4/vlmcsd/releases/download/svn1113/binaries.tar.gz tar -xzvf binaries.tar.gz cd binaries/Linux/intel/static ./vlmcsd-x64-musl-static netstat -tpln|grep 1688</code></pre> <h4>office自动激活脚本</h4> <pre><code>@echo off ::请使用管理员权限执行 if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0 bcdedit &gt;nul&amp;&amp;goto UACAdmin||goto UACPrompt :UACPrompt %1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&amp;exit :UACAdmin title office激活 start /min excel.exe for /f "delims=" %%a in ('wmic process where caption^="excel.exe" get commandline^|find /i "excel"') do ( taskkill /f /im excel.exe &gt;nul 2&gt;nul cd /d "%%~dpa" cd cscript OSPP.VBS /setprt:1688 cscript OSPP.VBS /sethst:172.16.2.69 cscript OSPP.VBS /act cscript OSPP.VBS /dstatus&amp;&amp;echo 激活已完成. pause exit )</code></pre> <h4>office 版本识别</h4> <pre><code>cscript os</code></pre> <h4>各版本GVLK参考</h4> <p><a href="https://blog.csdn.net/cncqly/article/details/87876517">https://blog.csdn.net/cncqly/article/details/87876517</a></p> <table> <thead> <tr> <th>Product</th> <th>GVLK</th> </tr> </thead> <tbody> <tr> <td>Office Professional Plus 2019</td> <td>NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP</td> </tr> <tr> <td>Office Professional Plus 2016</td> <td>XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99</td> </tr> <tr> <td>Office Professional Plus 2013</td> <td>YC7DK-G2NP3-2QQC3-J6H88-GVGXT</td> </tr> <tr> <td>Office Professional Plus 2010</td> <td>VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB</td> </tr> </tbody> </table> <h4>版本查询</h4> <pre><code>cd/d C:\Program Files (x86)\Microsoft Office\Office15 cscript OSPP.VBS /dstatus</code></pre> <p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/a325622ad0421e06a20ba9fa55111d8e?showdoc=.jpg" alt="" /></p> <h4>激活</h4> <pre><code>#安装GVLK cscript ospp.vbs /inpkey:PD3PC-RHNGV-FXJ29-8JK7D-RJRJK #配置KMS服务器地址(若无法设置需要管理员权限执行) cscript ospp.vbs /setprt:1688 cscript ospp.vbs /sethst:bak.huangwj.top #激活 cscript ospp.vbs /act #查询激活状态 cscript OSPP.VBS /dstatus</code></pre> <h4>VL版本转换</h4> <pre><code>dir /s /a /b *.xrm-ms cscript "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /inslic:"%ProgramFiles(x86)%\Microsoft Office\root\Licenses16\ProPlusVL_KMS_Client-ul-oob.xrm-ms"</code></pre> <p>若无法转换可使用迷你KMS转换版本</p>

页面列表

ITEM_HTML