@echo off ::(https://www.51it.wang改良版) ::获取运行路径 setlocal EnableDelayedExpansion cd /d "%~dp0" ::定义bat外观 title Windows 、Office全套激活脚本便携版V1.0 MODE con: COLS=88 lines=16 color 0a ::检测xp系统 ver | find "5." > nul && goto :xptooff ::获取管理员权限 %1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit ::配置 激活服务器 set kmsroot=kms.51it.wang ::访问网站地址: https://www.51it.wang ::备用kms0.51it.wang、kms1.51it.wang、kms2.51it.wang ::菜单 :begin cls echo. echo. echo. echo. ===== Windows 、Office全套激活脚本便携版V1.0 ===== echo. echo. --[1]--激活 Windows 系统(支持 Windows Vista/7/8/8.1/10 2008/2008R2/2012/2012R2/2016) echo. --[2]--激活 Office(支持 Office 2010/2013/2016 Office365) echo. --[3]--卸载 Windows系统激活 echo. --[4]--卸载 Office激活 echo. --[5]--查看 Windows 系统 状态 echo. --[6]--退出 echo. echo. --改版作者:lcry(www.51it.wang) echo. echo. choice /c 123456 /n /m "请选择【1-6】:" echo. %errorlevel% if %errorlevel% == 1 goto start if %errorlevel% == 2 goto office if %errorlevel% == 3 goto unwindows if %errorlevel% == 4 goto officeun if %errorlevel% == 5 goto zhuangtai if %errorlevel% == 6 goto end ::检测 激活服务器 :check cls echo. echo. echo. echo. 正在检查激活服务器:请稍后..... ping %kmsroot% | find /i "来自" >nul && ( goto :EOF ) || ( goto fail ) ::激活Windows :start cls echo. echo. echo. call :check echo. echo. 已连接服务器.... cscript //Nologo %windir%\system32\slmgr.vbs /xpr | find "已永久激活" > NUL && goto wintooff ::检测系统版本 ver | find "6.0." > NUL && goto winvista ver | find "6.1." > NUL && goto win7 ver | find "6.2." > NUL && goto win8 ver | find "6.3." > NUL && goto win81 ver | find "10.0." > NUL && goto win10 echo. echo. 你的操作 The system does not support activation (it may be WinXP or Win2003). echo. echo. operation has been completed! Press any key to return to the start menu. pause>nul goto begin : importing activation key: winvista echo. echo. is currently Windows Vista/2008, and starts to try to activate... echo. :: vista set Business=YFKBB-PQJJV-G996G-VWGXY-2V3X8 set BusinessN=HMBQG-8H2RH-C77VX-27R82-VMQBT set Enterprise=VKK3X-68KWM-X2YGT-QR4M6-4BWMV set EnterpriseN=VTC42-BM838-43QHV-84HX6-XJXKV :: Enterprise=VKK3X-68KWM-X2YGT-QR4M6-4BWMV set, Enterprise=VKK3X-68KWM-X2YGT-QR4M6-4BWMV set, BusinessN=HMBQG-8H2RH-C77VX-27R82-VMQBT set, import and export activation key: YTG23-K7D7T-X2JMM-QY7MG set ProfessionalE=W82YF-2Q76Y-63HXB-FGJG9-GF7QX set Enterprise=33PXH-7Y6KF-2VJC9-XBBR8-HVTHH set EnterpriseN=YDRBP-3D83W-TY26F-D46B2-XCKRJ set EnterpriseE=C29WB-22CC8-VJ326-GHFJW-H9DH4 :: 2008R2 set ServerWeb= 6TPJF-RBVHG-WBW2R-86QPH-6RTM4 set ServerHPC=TT8MH-CG224-D3D7Q-498W2-9QCTX set ServerStandard=YC6KT-GKW9T-YTKYR-T4X34-R7VHC set ServerEnterprise=489J6-VHDMP-X63PK-3K798-CPX3Y set ServerStandard=YC6KT-GKW9T-YTKYR-T4X34-R7VHC set: "import activation key": "the current is", "start to try to activate." NtrySpecific=4K36P-JN4VD-GDC6V-KDT89-DYFKP set ServerStandard=XC9B7-NBPP2-83J2H-RHMBY-92BT4 set ServerMultiPointStandard=HM7DN-YVMH3-46JC3-XYTG7-CYQJJ set ServerMultiPointPremium=XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G set ServerDatacenter= 48HP8-DN98B-MYWDG-T2DCC-8W83P goto windowsstart : import activation key: win81 echo. echo. is currently Windows 8.1, starting to try to activate... echo. :: win8.1 set.. echo. : ServerMultiPointStandard=HM7DN-YVMH3-46JC3-XYTG7-CYQJJ set:: import key to activate key: ServerMultiPointStandard=HM7DN-YVMH3-46JC3-XYTG7-CYQJJ set is currently trying to activate. X-D2C8J-H872K-2YT43 set EnterpriseN=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 set Education=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 set EducationN=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ set EnterpriseS=WNMTR-4C88C-JK8YV-HQ7T2-76DF9 set EnterpriseSN= 2F77B-TNFGY-69QQF-B8YKP-D69TJ set EnterpriseN=DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ set EnterpriseSN=QFFDN-GRT3P-VKWWX-X7T3R-8B639 set EnterpriseG=YYVX9-NTFWV-6MDM3-9PT4T-4M68B set EnterpriseGN=44RPN-FTY23-9VTTB-MP9BX-T84FV :: EnterpriseG=YYVX9-NTFWV-6MDM3-9PT4T-4M68B set: the activation system is: activating the operating system! Please wait..... for /f "tokens=3 delims="%%i in ('reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "/v") ("X." Please upgrade your operating system to bulk VL version first. echo. echo. operation has been completed! Press any key to return to the start menu. pause>nul goto begin :: skipping permanent activation: wintooff cls echo. echo. echo. echo. system has been permanently activated! No activation is required. Press any key to return to the start menu. echo. echo. echo. operation has been completed! Press any key to return to the start menu. pause>nul goto begin : detect office version: office cls echo. echo. echo. call: check echo. echo. has been connected to the server.... echo. echo. is checking the Office version of the installation... call: GetOfficePath 14 Office2010 call: ActOffice 14 Office2010 call: 15 15:: 15 15 is testing the installation path of the series of products. You may have modified the default installation path! & echo. & echo.: Visit: https://www.51it.wang/ll/776 manually activated by tutorial! &echo.) echo. echo. operation has been completed! Press any key to return to the start menu. In the form of "Qi", it is said that it is in the form of "two kinds of people". pause>nul goto begin : detect office path: GetOfficePath echo. echo. is testing the installation path of%2 series products.. set _Office%1Path= set _Reg32=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\%1.0\Common\InstallRoot set _Reg64= HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\%1.0\Common\InstallRoot reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\%1.0\Common\InstallRoot reg" /d "_Office%1Path!" echo. echo. is checking the activation state of%2! Later, please... Cscript //nologo ospp.vbs /act find /i successful > NUL & & (echo. / echo. * * * *%2 has been activated, automatically skip * * * * *). Please hold on later... If%1 EQU 14 call: Licens14 if%1 EQU 15 call: Licens15 if if%1 16 Press any key to return to the start menu. pause>nul goto begin ) cd /d "%~dp0" goto: EOF :: import office activation key: Licens14 for /f%%x%%x (Licens14 for) /f (Licens14 for) /f (Licens14 for) /f (Licens14 for) /f (Licens14 for) /f (Licens14 for), Licens14 for (/f), Licens14 for, /f,%%x, Licens14 for, /f,%%x, Licens14 for, /f,%%x, Licens14 for, /f,%%x, Licens14 for, /f,%%x, etc. X in ('dir /b..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic: "..\root\Licenses16\%%x" >nul for >nul for /inslic:, "Xun", "Xun", "Xun", "Xun", "Xun", "Xun", "Xun", "Xun", ":" Activation activation is not supported. ***** echo. echo. echo. operation has been completed! Press any key to return to the start menu. pause>nul goto begin : failure: fail cls echo. echo. echo. echo.: * * * * * can not connect to the server. Please check the network reactivation. If you have connected to the network or not, please visit https://www.51it.wang to get the latest version of the activation address ***** echo. echo. echo. operation has been completed! Press any key to return to the start menu. pause>nul goto begin :: uninstall Windows activator: unwindows cls echo. echo. echo. echo. is unloading Windows activation! Later, please. Cscript //Nologo%windir%\system32\slmgr.vbs /upk >nul cscript //Nologo%windir%\system32\slmgr.vbs /c activates >nul cscript cscript "XXXXXX" error "/" & / (* * * * * * * * * activation, uninstall work * * * * * *). Press any key to return to the start menu. pause>nul goto begin : uninstall office activator: officeun cls echo. echo. echo. echo. is checking the Office version of the installation... call: GetOfficePath 14 Office2010 call: unoffice 14 Office2010 call: GetOfficePath 15 Office2010 call: 15 15 is testing the installation path of the series of products. You may have modified the default installation path! & echo. & echo.: Visit: https://www.51it.wang/ll/776 manually uninstall activation by tutorial! Echo.) echo. echo. operation has been completed! Press any key to return to the start menu. pause>nul goto begin :: uninstall office activator: unoffice if DEFINED _Office%1Path (/d CD /d "_Office%1Path!" echo. echo. echo. is being unloaded to activate! Later, please... Cscript //nologo ospp.vbs /unpkey:H3GVB >nul cscript //nologo ospp.vbs /unpkey:8R6BM >nul cscript cscript, the first, the second, the second, the third, the third, the third, the right, the right, the right, the right. L cscript //nologo ospp.vbs /unpkey:RM3B3 >nul cscript //nologo ospp.vbs /unpkey:PGWR7 >nul /unpkey:PGWR7, China and Japan, //nologo, ospp.vbs, /unpkey:PGWR7, >nul , ospp.vbs, /unpkey:PGWR7, ospp.vbs, /unpkey:PGWR7, >nul , and so on. //nologo ospp.vbs /unpkey:BY6C6 >nul cscript //nologo ospp.vbs /unpkey:8837K >nul cscript //nologo //nologo >nul , the first, the second and the third. Press any key to return to the start menu. pause>null goto begin ) cd /d "%~dp0" goto: EOF :: view windows activation status: zhuangtai cls slmgr.vbs -dlv echo. echo. operation has been completed! Press any key to return to the start menu. pause>nul goto begin : Exit: end MODE con: COLS=60 lines=9 exit # original author: https://v0v.bid/