获得当前系统的Key
powershell "(Get-WmiObject -query 'select * from SoftwareLicensingService').Oa3xOriginalProductKey"
卸载key,至未激活状态
slmgr.vbs -upk
查看win何时过期
slmgr.vbs -xpr
查看详细激活信息
slmgr.vbs -dlv
3600s后自动关机
shutdown -s -t 3600
取消自动关机
shutdown -a
校验文件
CertUtil -hashfile (文件路径) (算法)
例如:CertUtil -hashfile D:\123.exe MD5 校验文件MD5值
网络问题
ping ip
ipconfig -all //所有网络设备的信息
route print
KMS激活win
slmgr /ipk THE_CLIENT_KEY
slmgr /skms YOUR_KMS_IP
slmgr /ato
| Win10专业版(半年一激活) | W269N-WFGWX-YVC9B-4J6C9-T83GX |
| Win10企业版(半年一激活) | NPPR9-FWDCX-D2C8J-H872K-2YT43 |
| cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dstatus |
| cscript "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /dstatus |
| 步骤 | 代码 |
|---|---|
| 卸载key(非必要) | cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /unpkey:XXXXX XXXXX是你想要卸载的产品的密钥后5位,即可卸载密钥。 |
| 1.定位到office16文件夹 | cd /d %ProgramFiles%\Microsoft Office\Office16 |
| cd /d %ProgramFiles(x86)%\Microsoft Office\Office16 | |
| 2.Convert your retail license to volume one. | For Project 2016 for /f %x in ('dir /b ..\root\Licenses16\projectprovl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x" |
| For Office 2019 安装 KMS 许可证... for /f %x in ('dir /b ..\root\Licenses16\ProPlus2019VL_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x" >nul 安装 MAK 许可证... for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL_mak*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul |
|
| For Visio 2016 for /f %x in ('dir /b ..\root\Licenses16\visioprovl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x" |
|
| For Visio 2019 for /f %x in ('dir /b ..\root\Licenses16\visiopro2019vl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x" |
|
| 3.Activate your Office using KMS client key. | cscript ospp.vbs /inpkey:THE_CLIENT_KEY cscript ospp.vbs /sethst:****.com(你的KMS服务器) cscript ospp.vbs /setprt:1688 cscript ospp.vbs /act |
| The full list of client keys: 来源:microsoft.com Office 专业增强版 2019: NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP Office 专业增强版 2016: XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 Project 2016: YG9NW-3K39V-2T3HJ-93F3Q-G83KT Project 2019: B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B Visio 2016: PD3PC-RHNGV-FXJ29-8JK7D-RJRJK Visio 2019: 9BGNQ-K37YR-RQHF2-38RQ3-7VCBB |