123
返回列表 发新帖
楼主: YYyang
收起左侧

[教程] 简单实用WIN10专业版永久激活

  [复制链接]
想离开的人
发表于 2019-12-2 13:48:32 | 显示全部楼层
小难民 发表于 2019-11-30 10:27
有office2016/2019永久激活的工具吗?

没有永久激活的工具,不过可以使用在线的服务器或自行搭建,从而实现KMS激活而不使用第三方激活工具,所需要的程序均在安装OFFICE 2016/2019时已安装(绿色版或修改版除外),我可以提供一下相应的脚本,自己找到相应的服务器即可使用。
我自己是在路由器上搭建的KMS服务器,所以脚本内的地址你用不了。
以下内容复制到记事本保存为 *.BAT 或 *.cmd 运行即可。

  1. ::关闭回显 & 定义标题
  2. [url=home.php?mod=space&uid=331734]@echo[/url] off & title MS-Office 2016/2019 线上KMS服务器激活

  3. ::============================================================
  4. ::此处设置KMS服务器
  5. ::  你可以使用文本编辑器(例如记事本)编辑该批处理文件
  6. ::  按照下列格式添加新的 KMS 服务器。
  7. set KMS1=router.asus.com

  8. :: 最多可以设置 50 个KMS服务器,以下内容无需修改
  9. ::============================================================
  10. ::开启环境变量延迟
  11. setlocal EnableExtensions EnableDelayedExpansion

  12. ::获取管理员身份
  13. set "_FilePath=%~f0"
  14. set "_FileDir=%~dp0"
  15. setlocal EnableExtensions EnableDelayedExpansion
  16. fltmc >nul 2>&1 || (
  17.     echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs"
  18.     echo UAC.ShellExecute "!_FilePath!", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs"
  19.     "%temp%\GetAdmin.vbs"
  20.     del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1
  21.     exit
  22. )
  23. pushd "!_FileDir!"

  24. ::============================================================
  25. ::检查系统语言
  26. chcp | find "936" > nul || (
  27. echo. & echo.The Batch only support Simplified Chinese, press anykey to exit.
  28. pause>nul & exit
  29. )

  30. ::检查是否联网使用
  31. echo.正在检测网络,请稍等...
  32. ping -n 1 www.baidu.com | find /i "TTL" > nul && ( echo.测试正常,脚本继续... ) || ( echo.检测到网络存在异常,本脚本需联网使用,请检查网络,按任意键退出... & exit )

  33. ::============================================================
  34. ::从注册表获取安装路径
  35. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\16.0\Common\InstallRoot /v Path" 2^>nul') do (
  36.     set "_msi16=%%b"
  37. )
  38. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Common\InstallRoot /v Path" 2^>nul') do (
  39.     set "_msi16wow=%%b"
  40. )
  41. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" 2^>nul') do (
  42.     set "_ctr16=%%b\Office16"
  43. )

  44. ::验证路径是否正确,是则继续,否则提示未找到安装目录
  45. if exist "%_msi16%\OSPP.VBS" (
  46.     cd /d %_msi16%
  47. ) else if exist "%_msi16wow%\OSPP.VBS" (
  48.     cd /d %_msi16wow%
  49. ) else if exist "%_ctr16%\OSPP.VBS" (
  50.     cd /d %_ctr16%
  51. ) else if exist "%ProgramFiles%\Microsoft Office\Office16\OSPP.VBS" (
  52.     cd /d "%ProgramFiles%\Microsoft Office\Office16"
  53. ) else if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\OSPP.VBS" (
  54.     cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16"
  55. ) else (
  56. echo.未找到 Microsoft Office 2016
  57. echo.请按任意键退出。。。
  58. pause>nul & exit
  59. )

  60. ::============================================================
  61. ::正在获取所安装的版本信息
  62. if exist "%tmp%\kms.log" del "%tmp%\kms.log"
  63. Cscript /nologo OSPP.VBS /dstatusall >>"%tmp%\kms.log"

  64. ::============================================================
  65. ::  MS-Office 2016
  66. ::    Office 标准版
  67. type "%tmp%\kms.log" | find "Office16Standard" >nul && (
  68. echo.检测到安装了产品:Microsoft Office 2016 标准版
  69. echo.正在安装 KMS 许可证...
  70. for /f %%x in ('dir /b ..\root\Licenses16\StandardVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  71. echo.正在安装 MAK 许可证...
  72. for /f %%x in ('dir /b ..\root\Licenses16\StandardVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  73. echo.正在导入 KMS GVLK
  74. Cscript /nologo OSPP.VBS /inpkey:JNRGM-WHDWX-FJJG3-K47QV-DRTFM >nul
  75. )

  76. ::    Office 专业增强版
  77. type "%tmp%\kms.log" | find "Office16ProPlus" >nul && (
  78. echo.检测到安装了产品:Microsoft Office 2016 专业增强版
  79. echo.正在安装 KMS 许可证...
  80. for /f %%x in ('dir /b ..\root\Licenses16\ProPlusVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  81. echo.正在安装 MAK 许可证...
  82. for /f %%x in ('dir /b ..\root\Licenses16\ProPlusVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  83. echo.正在导入 KMS GVLK
  84. Cscript /nologo OSPP.VBS /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 >nul
  85. )

  86. ::    Project 标准版
  87. type "%tmp%\kms.log" | find "Office16ProjectStd" >nul && (
  88. echo.检测到安装了产品:Microsoft Project 2016 标准版
  89. echo.正在安装 KMS 许可证...
  90. for /f %%x in ('dir /b ..\root\Licenses16\ProjectStdVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  91. echo.正在安装 MAK 许可证...
  92. for /f %%x in ('dir /b ..\root\Licenses16\ProjectStdVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  93. echo.正在导入 KMS GVLK
  94. Cscript /nologo OSPP.VBS /inpkey:GNFHQ-F6YQM-KQDGJ-327XX-KQBVC >nul
  95. )

  96. ::    Project 专业版
  97. type "%tmp%\kms.log" | find "Office16ProjectPro" >nul && (
  98. echo.检测到安装了产品:Microsoft Project 2016 专业版
  99. echo.正在安装 KMS 许可证...
  100. for /f %%x in ('dir /b ..\root\Licenses16\ProjectProVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  101. echo.正在安装 MAK 许可证...
  102. for /f %%x in ('dir /b ..\root\Licenses16\ProjectProVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  103. echo.正在导入 KMS GVLK
  104. Cscript /nologo OSPP.VBS /inpkey:YG9NW-3K39V-2T3HJ-93F3Q-G83KT >nul
  105. )

  106. ::    Visio 标准版
  107. type "%tmp%\kms.log" | find "Office16VisioStd" >nul && (
  108. echo.检测到安装了产品:Microsoft Visio 2016 标准版
  109. echo.正在安装 KMS 许可证...
  110. for /f %%x in ('dir /b ..\root\Licenses16\VisioStdVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  111. echo.正在安装 MAK 许可证...
  112. for /f %%x in ('dir /b ..\root\Licenses16\VisioStdVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  113. echo.正在导入 KMS GVLK
  114. Cscript /nologo OSPP.VBS /inpkey:7WHWN-4T7MP-G96JF-G33KR-W8GF4 >nul
  115. )

  116. ::    Visio 专业版
  117. type "%tmp%\kms.log" | find "Office16VisioPro" >nul && (
  118. echo.检测到安装了产品:Microsoft Visio 2016 专业版
  119. echo.正在安装 KMS 许可证...
  120. for /f %%x in ('dir /b ..\root\Licenses16\VisioProVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  121. echo.正在安装 MAK 许可证...
  122. for /f %%x in ('dir /b ..\root\Licenses16\VisioProVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  123. echo.正在导入 KMS GVLK
  124. Cscript /nologo OSPP.VBS /inpkey:PD3PC-RHNGV-FXJ29-8JK7D-RJRJK >nul
  125. )

  126. ::    Access
  127. type "%tmp%\kms.log" | find "Office16Access" >nul && (
  128. echo.检测到安装了产品:Microsoft Access 2016
  129. echo.正在安装 KMS 许可证...
  130. for /f %%x in ('dir /b ..\root\Licenses16\AccessVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  131. echo.正在安装 MAK 许可证...
  132. for /f %%x in ('dir /b ..\root\Licenses16\AccessVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  133. echo.正在导入 KMS GVLK
  134. Cscript /nologo OSPP.VBS /inpkey:GNH9Y-D2J4T-FJHGG-QRVH7-QPFDW >nul
  135. )

  136. ::    Excel
  137. type "%tmp%\kms.log" | find "Office16Excel" >nul && (
  138. echo.检测到安装了产品:Microsoft Excel 2016
  139. echo.正在安装 KMS 许可证...
  140. for /f %%x in ('dir /b ..\root\Licenses16\ExcelVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  141. echo.正在安装 MAK 许可证...
  142. for /f %%x in ('dir /b ..\root\Licenses16\ExcelVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  143. echo.正在导入 KMS GVLK
  144. Cscript /nologo OSPP.VBS /inpkey:9C2PK-NWTVB-JMPW8-BFT28-7FTBF >nul
  145. )

  146. ::    OneNote
  147. type "%tmp%\kms.log" | find "Office16OneNote" >nul && (
  148. echo.检测到安装了产品:Microsoft OneNote 2016
  149. echo.正在安装 KMS 许可证...
  150. for /f %%x in ('dir /b ..\root\Licenses16\OneNoteVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  151. echo.正在安装 MAK 许可证...
  152. for /f %%x in ('dir /b ..\root\Licenses16\OneNoteVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  153. echo.正在导入 KMS GVLK
  154. Cscript /nologo OSPP.VBS /inpkey:DR92N-9HTF2-97XKM-XW2WJ-XW3J6 >nul
  155. )

  156. ::    Outlook
  157. type "%tmp%\kms.log" | find "Office16Outlook" >nul && (
  158. echo.检测到安装了产品:Microsoft Outlook 2016
  159. echo.正在安装 KMS 许可证...
  160. for /f %%x in ('dir /b ..\root\Licenses16\OutlookVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  161. echo.正在安装 MAK 许可证...
  162. for /f %%x in ('dir /b ..\root\Licenses16\OutlookVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  163. echo.正在导入 KMS GVLK
  164. Cscript /nologo OSPP.VBS /inpkey:R69KK-NTPKF-7M3Q4-QYBHW-6MT9B >nul
  165. )

  166. ::    PowerPoint
  167. type "%tmp%\kms.log" | find "Office16PowerPoint" >nul && (
  168. echo.检测到安装了产品:Microsoft PowerPoint 2016
  169. echo.正在安装 KMS 许可证...
  170. for /f %%x in ('dir /b ..\root\Licenses16\PowerPointVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  171. echo.正在安装 MAK 许可证...
  172. for /f %%x in ('dir /b ..\root\Licenses16\PowerPointVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  173. echo.正在导入 KMS GVLK
  174. Cscript /nologo OSPP.VBS /inpkey:J7MQP-HNJ4Y-WJ7YM-PFYGF-BY6C6 >nul
  175. )

  176. ::    Publisher
  177. type "%tmp%\kms.log" | find "Office16Publisher" >nul && (
  178. echo.检测到安装了产品:Microsoft Publisher 2016
  179. echo.正在安装 KMS 许可证...
  180. for /f %%x in ('dir /b ..\root\Licenses16\PublisherVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  181. echo.正在安装 MAK 许可证...
  182. for /f %%x in ('dir /b ..\root\Licenses16\PublisherVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  183. echo.正在导入 KMS GVLK
  184. Cscript /nologo OSPP.VBS /inpkey:F47MM-N3XJP-TQXJ9-BP99D-8K837 >nul
  185. )

  186. ::    Skype for Business
  187. type "%tmp%\kms.log" | find "Office16SkypeforBusiness" >nul && (
  188. echo.检测到安装了产品:Microsoft Skype for Business 2016
  189. echo.正在安装 KMS 许可证...
  190. for /f %%x in ('dir /b ..\root\Licenses16\SkypeforBusinessVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  191. echo.正在安装 MAK 许可证...
  192. for /f %%x in ('dir /b ..\root\Licenses16\SkypeforBusinessVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  193. echo.正在导入 KMS GVLK
  194. Cscript /nologo OSPP.VBS /inpkey:869NQ-FJ69K-466HW-QYCP2-DDBV6 >nul
  195. )

  196. ::    Word
  197. type "%tmp%\kms.log" | find "Office16Word" >nul && (
  198. echo.检测到安装了产品:Microsoft Word 2016
  199. echo.正在安装 KMS 许可证...
  200. for /f %%x in ('dir /b ..\root\Licenses16\WordVL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  201. echo.正在安装 MAK 许可证...
  202. for /f %%x in ('dir /b ..\root\Licenses16\WordVL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  203. echo.正在导入 KMS GVLK
  204. Cscript /nologo OSPP.VBS /inpkey:WXY84-JN2Q9-RBCCQ-3Q3J3-3PFJ6 >nul
  205. )

  206. ::============================================================
  207. ::  MS-Office 2019
  208. ::    Office 标准版
  209. type "%tmp%\kms.log" | find "Office19Standard" >nul && (
  210. echo.检测到安装了产品:Microsoft Office 2019 标准版
  211. echo.正在安装 KMS 许可证...
  212. for /f %%x in ('dir /b ..\root\Licenses16\Standard2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  213. echo.正在安装 MAK 许可证...
  214. for /f %%x in ('dir /b ..\root\Licenses16\Standard2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  215. echo.正在导入 KMS GVLK
  216. Cscript /nologo OSPP.VBS /inpkey:6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK >nul
  217. )

  218. ::    Office 专业增强版
  219. type "%tmp%\kms.log" | find "Office19ProPlus" >nul && (
  220. echo.检测到安装了产品:Microsoft Office 2019 专业增强版
  221. echo.正在安装 KMS 许可证...
  222. for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  223. echo.正在安装 MAK 许可证...
  224. for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  225. echo.正在导入 KMS GVLK
  226. Cscript /nologo OSPP.VBS /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >nul
  227. )

  228. ::    Project 标准版
  229. type "%tmp%\kms.log" | find "Office19ProjectStd" >nul && (
  230. echo.检测到安装了产品:Microsoft Project 2019 标准版
  231. echo.正在安装 KMS 许可证...
  232. for /f %%x in ('dir /b ..\root\Licenses16\ProjectStd2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  233. echo.正在安装 MAK 许可证...
  234. for /f %%x in ('dir /b ..\root\Licenses16\ProjectStd2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  235. echo.正在导入 KMS GVLK
  236. Cscript /nologo OSPP.VBS /inpkey:C4F7P-NCP8C-6CQPT-MQHV9-JXD2M >nul
  237. )

  238. ::    Project 专业版
  239. type "%tmp%\kms.log" | find "Office19ProjectPro" >nul && (
  240. echo.检测到安装了产品:Microsoft Project 2019 专业版
  241. echo.正在安装 KMS 许可证...
  242. for /f %%x in ('dir /b ..\root\Licenses16\ProjectPro2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  243. echo.正在安装 MAK 许可证...
  244. for /f %%x in ('dir /b ..\root\Licenses16\ProjectPro2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  245. echo.正在导入 KMS GVLK
  246. Cscript /nologo OSPP.VBS /inpkey:B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B >nul
  247. )

  248. ::    Visio 标准版
  249. type "%tmp%\kms.log" | find "Office19VisioStd" >nul && (
  250. echo.检测到安装了产品:Microsoft Visio 2019 标准版
  251. echo.正在安装 KMS 许可证...
  252. for /f %%x in ('dir /b ..\root\Licenses16\VisioStd2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  253. echo.正在安装 MAK 许可证...
  254. for /f %%x in ('dir /b ..\root\Licenses16\VisioStd2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  255. echo.正在导入 KMS GVLK
  256. Cscript /nologo OSPP.VBS /inpkey:7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2 >nul
  257. )

  258. ::    Visio 专业版
  259. type "%tmp%\kms.log" | find "Office19VisioPro" >nul && (
  260. echo.检测到安装了产品:Microsoft Visio 2019 专业版
  261. echo.正在安装 KMS 许可证...
  262. for /f %%x in ('dir /b ..\root\Licenses16\VisioPro2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  263. echo.正在安装 MAK 许可证...
  264. for /f %%x in ('dir /b ..\root\Licenses16\VisioPro2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  265. echo.正在导入 KMS GVLK
  266. Cscript /nologo OSPP.VBS /inpkey:9BGNQ-K37YR-RQHF2-38RQ3-7VCBB >nul
  267. )

  268. ::    Access
  269. type "%tmp%\kms.log" | find "Office19Access" >nul && (
  270. echo.检测到安装了产品:Microsoft Access 2019
  271. echo.正在安装 KMS 许可证...
  272. for /f %%x in ('dir /b ..\root\Licenses16\Access2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  273. echo.正在安装 MAK 许可证...
  274. for /f %%x in ('dir /b ..\root\Licenses16\Access2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  275. echo.正在导入 KMS GVLK
  276. Cscript /nologo OSPP.VBS /inpkey:9N9PT-27V4Y-VJ2PD-YXFMF-YTFQT >nul
  277. )

  278. ::    Excel
  279. type "%tmp%\kms.log" | find "Office19Excel" >nul && (
  280. echo.检测到安装了产品:Microsoft Excel 2019
  281. echo.正在安装 KMS 许可证...
  282. for /f %%x in ('dir /b ..\root\Licenses16\Excel2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  283. echo.正在安装 MAK 许可证...
  284. for /f %%x in ('dir /b ..\root\Licenses16\Excel2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  285. echo.正在导入 KMS GVLK
  286. Cscript /nologo OSPP.VBS /inpkey:TMJWT-YYNMB-3BKTF-644FC-RVXBD >nul
  287. )

  288. ::    Outlook
  289. type "%tmp%\kms.log" | find "Office19Outlook" >nul && (
  290. echo.检测到安装了产品:Microsoft Outlook 2019
  291. echo.正在安装 KMS 许可证...
  292. for /f %%x in ('dir /b ..\root\Licenses16\Outlook2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  293. echo.正在安装 MAK 许可证...
  294. for /f %%x in ('dir /b ..\root\Licenses16\Outlook2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  295. echo.正在导入 KMS GVLK
  296. Cscript /nologo OSPP.VBS /inpkey:7HD7K-N4PVK-BHBCQ-YWQRW-XW4VK >nul
  297. )

  298. ::    PowerPoint
  299. type "%tmp%\kms.log" | find "Office19PowerPoint" >nul && (
  300. echo.检测到安装了产品:Microsoft PowerPoint 2019
  301. echo.正在安装 KMS 许可证...
  302. for /f %%x in ('dir /b ..\root\Licenses16\PowerPoint2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  303. echo.正在安装 MAK 许可证...
  304. for /f %%x in ('dir /b ..\root\Licenses16\PowerPoint2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  305. echo.正在导入 KMS GVLK
  306. Cscript /nologo OSPP.VBS /inpkey:RRNCX-C64HY-W2MM7-MCH9G-TJHMQ >nul
  307. )

  308. ::    Publisher
  309. type "%tmp%\kms.log" | find "Office19Publisher" >nul && (
  310. echo.检测到安装了产品:Microsoft Publisher 2019
  311. echo.正在安装 KMS 许可证...
  312. for /f %%x in ('dir /b ..\root\Licenses16\Publisher2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  313. echo.正在安装 MAK 许可证...
  314. for /f %%x in ('dir /b ..\root\Licenses16\Publisher2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  315. echo.正在导入 KMS GVLK
  316. Cscript /nologo OSPP.VBS /inpkey:G2KWX-3NW6P-PY93R-JXK2T-C9Y9V >nul
  317. )

  318. ::    Skype for Business
  319. type "%tmp%\kms.log" | find "Office19SkypeforBusiness" >nul && (
  320. echo.检测到安装了产品:Microsoft Skype for Business 2019
  321. echo.正在安装 KMS 许可证...
  322. for /f %%x in ('dir /b ..\root\Licenses16\SkypeforBusiness2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  323. echo.正在安装 MAK 许可证...
  324. for /f %%x in ('dir /b ..\root\Licenses16\SkypeforBusiness2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  325. echo.正在导入 KMS GVLK
  326. Cscript /nologo OSPP.VBS /inpkey:NCJ33-JHBBY-HTK98-MYCV8-HMKHJ >nul
  327. )

  328. ::    Word
  329. type "%tmp%\kms.log" | find "Office19Word" >nul && (
  330. echo.检测到安装了产品:Microsoft Word 2019
  331. echo.正在安装 KMS 许可证...
  332. for /f %%x in ('dir /b ..\root\Licenses16\Word2019VL_KMS*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  333. echo.正在安装 MAK 许可证...
  334. for /f %%x in ('dir /b ..\root\Licenses16\Word2019VL_MAK*.xrm-ms') do Cscript /nologo OSPP.VBS /inslic:"..\root\Licenses16\%%x" >nul
  335. echo.正在导入 KMS GVLK
  336. Cscript /nologo OSPP.VBS /inpkey:PBX3G-NWMT6-Q7XBW-PYJGG-WXD33 >nul
  337. )

  338. ::============================================================
  339. ::尝试激活
  340. for /L %%a in (1,1,50) do (
  341.         if defined KMS%%a (
  342.                 echo ============================================ &echo 正在尝试的 KMS 服务器:  !KMS%%a! &echo.
  343.                 cscript //Nologo OSPP.VBS /sethst:!KMS%%a! >nul
  344.                 (cscript //nologo OSPP.VBS /act) ^| findstr /i "successful" >nul && (
  345.                         del "%tmp%\kms.log" >nul 2>nul
  346.                         echo.&echo ==================================================================
  347.                         echo 恭喜!已经成功激活! &echo.&echo 使用的 KMS 服务器是: !KMS%%a!
  348.                         echo ==================================================================&echo.
  349.                         echo 按任意键退出... & pause>nul
  350.                         exit
  351.                 )
  352.         )
  353. )
复制代码
wyhzxy
发表于 2019-12-2 22:10:18 | 显示全部楼层
MARK KMS 激活操作方式
a8855942
发表于 2019-12-5 18:17:17 | 显示全部楼层
怕肉鸡。
gigi365
发表于 2019-12-20 10:45:47 | 显示全部楼层
简单、无广告。3以后的版本不爱用
mxaprak
发表于 2019-12-21 16:07:11 | 显示全部楼层
淘宝买个可以重装的key多好
newbxh007
发表于 2019-12-25 11:43:06 | 显示全部楼层
学习学习在学习
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-12-24 10:03 , Processed in 0.097664 second(s), 13 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表