@In order to get the running path, SETLOCAL enabledexpansion, CD / D "% ~ DP0" , CD / D "~ DP0" a : detect XP system ver | find "5. > > nul & & goto: xptooff : get administrator rights % 1 start" "mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas", 1) (window.close) & exit (window.close) & exit cls echo. echo. echo. echo. = = = = windows, office full set of activation scripts portable version v1.0 = = = = echo. echo. - [1] - activate Windows Echo... -- [2] -- activate Office (Support Office 2010 / 2013 / 2016 office365) echo... -- [3] -- uninstall windows system activation ԡ echo... -- [3] -- uninstall windows system activation ԡ echo... -- [4] -- uninstall office activation activation echo... -- [5] -- View windows system status echo... -- [6] -- exit ԡ echo. ԡϲ echo; -- [4] -- uninstall office activation echo. -- [5] -- view windows system status echo... -- [6] -- exit echo. ϲ echo --Lcry (www.51it.wang) ԡ echo. echo. 𠃱echo. ԡecho. 𠃱echo. / choice / C 123456 / N / M "please select [1-6]:", echo.% errorlevel% if% errorlevel% = = 1 go to start if% errorlevel% = = 2 go to office if% errorlelevel% = = 3 goto to go to go to go to office if% errorlevel% = = 3 goto to go to go to go to office if% errorlevel% = = 3 goto to go to go to go to office if% errorlevel% = = 3 goto to go to go to go to go to go to go to office if% errorlelevel unwindows if% errorlevel% = = 4 goto officeun if% errorlevel% = = 5 goto zhangtai if% errorlevel% = = 6 goto end : The activated server is in the process of checking the activation server: please wait a moment to check the activation server: Ping% kmsroot% | find / I "from" > nul & & amp; (goto: EOF) | (goto fail) | (goto fail) | (goto fail) | (goto fail) :: to activate Windows ԡ: to activate Windows : to activate Windows : to: to: to: to: to activate Windows : to activate Windows : to: to activate Windows : to activate Windows : to activate Windows : to: to activate Windows : to: to activate Windows : to: to activate Windows start CLS echo. echo. echo. call: check echo. echo. Connected server... cscript / / nologo% windir% \ system32 \ \ slmgr.vbs / XPR | find "Has been permanently activated" > nul & & goto winooff "has been permanently activated" > nul & & goto winwinwinvista & goto winvista ver | find "6.0." > nul & & goto winvista \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\& goto win81 ver | find "10.0." > nul & goto win10 echo. echo. Your operating system does not support activation (possibly WinXP or Win2003). Echo! Press any key to return to the menu. : import activation key winvista winvista echo. , start to try to activate... Currently Windows Vista / 2008 Windows Vista / 2008, start to try to activate... Start to try to activate... Start to try to activate... Currently Windows Vista / 2008, start to try to activate... Start to try to activate... Start to try to activate..., start to try to activate..., start to try to activate..., start to try to activate..., start to try to activate..., start to try to activate..., start to try to activate windows Vista 2008, start to try to activate start to try to activate start to start to set business n = hmbqg-8h2rh-c77vx-27r82-vmqbt set enterprise = vkk3x-68kwm-x2ygt-qr4m6-4bwmv set enterprise = vtc42-bm838-43qhv-84hx6-xjxkv : 2008 ServerWeb=WYR28-R7TFJ-3X2YQ-YCY4H-M249D set ServerStandard=TM24T-X9RMF-VWXK6-X8JC9-BFGM2 set ServerStandardV=W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ set ServerEnterprise=YQGMW-MPWTJ-34KDK-48M3W-X4Q6V set ServerEnterpriseV=39BXF-X8Q23-P2WWT-38T2F-G3FPG set ServerWeb=RCTX3-KWVHP-BR6TB-RB6DM-6X7HP set Set serverdatacenter v = 22xq2-vrxrg-p8d42-k34td-g3qqqc set server enterprise IA64 = 4dwfp-jf3dj-b7dth-78fjb-pdrhk import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation key import activation : win7 echo. : win7 echo. Currently Windows 7 / 2008 R2, start to try to activate.... echo. ; set Professional=FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 set ProfessionalN=MRPKT-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 Set server standard = yc6kt-gkw9t-ytkyr-t4x34-r7vhc set server enterprise = 489j6-vhdmp-x63pk-3k798-cpx3y , set server data center = 74yfp-3qfb3-kfb3-kqt8w-pmxwj-7m648 pmxwj-7m648 set server data center = 74yfp-3qfb3-kqt8w-pmxwj-7m648 \\10; set server data center = 74yfp-3qfp-3qfb3-kfb3-kqt8w-pmxwj-7m648 7m648 setserver enterprise IA64 = gt63c-rjfq3-4gmb6-brfb9-cb83v goto Windows start : import activation key : win8 echo. ; echo. Currently windows Starting from August 8, 2012, we started to try to activate... And start to try to activate... In the beginning of August 2012, we started to try to activate...... win8 set professional = ng4hw-vh26c-733kw-k6f98-j8ck4 set professional n = xccvcf-2nxm9-723pb-723pb-mhcb7-mhcb7-2ryqq set enterprise = 32jnw-9kq84-p47t8-d8ggy-cwcwcwcwcw-9jnw-9kq84-p47t8-d8ggy-cwcwcwcwcwcwcwcwcw-8gy-set professional n = 8-8ggy-d8ggy-set professional n = set professional n = 8gck7 set enterprise = jmnmf-rhw7p-dmy6x-rf3dr-x2bqt :: 2012 CoreSingleLanguage=2WN2H-YGCQR-KFX6K-CD6TF-84YXQ set CoreCountrySpecific=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 Windows start: import activation key import activation key: win81 echo. echo. Currently windows 8.1, start to try to activate... Start to try to activate... Start to try to activate... Start to try to activate... Start to try to activate... Windows 8.1, start to try to activate , start to try to activate : win8.1 set professional = gcrjd-8nw9h-f2cdx-ccm8d-9d6t9 set set professional set professional = gcrjd-8nw99h-f2dx-ccm8d-9d6t9 set set professional set professional = gcrjd-8nw9h-f2dx-ccm8d-9d6t9 set professional set professional = set professional professional n = hmcnv-vvbfx-7hmbh-cty9b-b4fxy set enterprise = mhf9n-xy6xb-wvxmc-btdct-mkkg7 ; set enterprise = tt4hm-hn7yt-62k67-rgrqj-jffxw : 2012r2 set enterprise Set serverstandard = d2n9p-3p6x9-2r39c-7rtcd-mdvjx set serversolution = set serversolution = knc87-3j2tx-xb4wp-vcpjv-m4fwm : import activation key : import activation key : Windows start \\ import activation key \\\\\\\\\\\\\\\\\\\\\\\\\\ echo. echo. Currently windows 10, start to try to activate...... echo. : win10 set professional = w269n-wfgwx-yvc9b-4j6c9-t83gx ; set professional = w269n-wfgwx-yvc9-4j6c9-t83gx set ProfessionalN=MH37W-N47XK-V7XM9-C7227-GCQG9 set Enterprise=NPPR9-FWDCX-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 ::2016 set ServerDatacenter=CB7KF-BWN84-R7R2Y-793K2-8XDDG set ServerStandard=WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY set - echo. - echo. - echo. - echo. - echo! For / F / F "tokens = 3 delims ="%% I in ('reg query "HKLM / software \ \ Microsoft \ \ Windows NT / CurrentVersion / V" editionid ") do set editionid =%% I for / F / F" token = 3 delims = "% I set editionid =%% I, if defined% editionid% (, cscscript / / nologo% editionid% (/ noscript / / nologo% windir% \ \ system32% slmgr.vbs / ipk!% editionid%! > nul script / / script / / noscript / / noscript / / noscript% editionid%! > nul script / / script / / noscript / / noscript / / noscript / / noscript / / noscript / / noscript / / noscript / / noscript logo% windir% \ system32 / slmgr.vbs / SKMS% kmsroot% > nul cscript / / nologo %The operating system has been activated successfully, and the operating system has been successfully activated * * operating system has been successfully activated * * operating system has been successfully activated * * operating system has been activated successfully * * operating system has been activated * * operating system has been activated successfully * * operating system has been activated successfully * * operating system has been activated successfully * * operating system has failed to activate * * operating system failed to activate * * * & echo | | (echo. & echo. & echo * * operating system activation failure * * * & echo.) 13; 13; else ( echo. \\\\\\\\echo. Activation failed! Please batch upgrade your VL version. ) echo. Operation completed! Press any key to return to the menu. pause > nul goto begin! No activation is required. Press any key to return to the menu. Echo.! Press any key to return to the menu. In order to detect office version : Office echo. Checking for installed Office version..... Call: getofficepath 14 Office2010 call: actoffice 14 Office2010 call: getofficepath 15 office2013 call: actoffice 15 office2013 echo. Detecting The installation path of office2016 series products...... if exist% programfiles% ﹥ Microsoft Office / office16 / ospp. VBS "set_ Office16Path=%ProgramFiles%\Microsoft Office\Office16 if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" set _ Office16Path=%ProgramFiles(x86)%\Microsoft Office\Office16 if DEFINED _ Office16path (CLS & echo. & echo. & echo. & echo. & echo. Office 2016 call: actoffice 16 office2016 ) else (CLS & echo. & echo. & echo. & echo. & echo! You may have modified the default installation path! &Echo. & echo. Please visit: https://www.51it.wang/ll/776 to activate manually according to the tutorial! &Echo.) echo. echo. Operation completed! Press any key to return to the menu. pause > nul goto begin : detect office path : getofficepath echo. echo. Testing 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 "%_ Reg32%" /v "Path" > nul 2>&1 && FOR /F "tokens=2*" %%a IN ('reg query "%_ Reg32%" /v "Path"') do SET "_ OfficePath1=%%b" reg query "%_ Reg64%" /v "Path" > nul 2>&1 && FOR /F "tokens=2*" %%a IN ('reg query "%_ Reg64%" /v "Path"') do SET "_ OfficePath2=%%b" if DEFINED _ OfficePath1 (if exist "%_ OfficePath1%ospp.vbs" set _ Office%1Path=!_ OfficePath1!) if DEFINED _ OfficePath2 (if exist "%_ OfficePath2%ospp.vbs" set _ Office%1Path=!_ OfficePath2!) set _ OfficePath1= set _ OfficePath2= if DEFINED _ Echo (echo) echo (echo) echo (echo) % echo (echo) & echo (echo) % echo (echo) & echo (echo) % echo (echo) & echo_ Office%1Path ( cd /d "!_ Office% 1path! " echo. echo. Checking activation status of% 2! Please wait... Cscript / / nologo ospp.vbs / act | find / I "successful" > nul - & ( echo. & echo. * *% 2 has been activated, automatically skipping × * * & echo.) | ( echo. & echo.% 2 is not activated, trying to activate! Please wait a little while..., if% 1 EQ 14 call: license S14% if% if% 1 equi15 call: license S15% if% 1 equal 16 call: license S15% if% 1 equal 16 call: license S16 "" script / / nologo ospp.vbs / sethst: kmsroot% > nul script / / nologo ospp.vbs / sethst: kmsroot% > nul ԡ script / / nologo ospp.vbs / act | find / I "successful" > nul & & amp; (𠃱 & amp; and & amp; and & amp; D & amp; I "successful" > nuclear & amp; and & amp; and & amp; and & amp; and & amp; and & amp; and & amp; and & amp; and & amp; and & amp; nbsp echo. & echo. 〝 echo. 〝 2 activated successfully 〝 * * & echo.) | (echo. & echo. * * *% 2 activation failed × * * & echo.) ; CD / D "% - DP0" echo. echo. Operation completed! Press any key to return to the menu. pause > nul_ kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses14\%%x" >nul for /f %%x in ('dir /b ..\root\Licenses14\proplusvl_ Script ospp.vbs / inpkey: vybbj-trjpb-qfqrf-qf4f4d-h3gvb > nul trjpb-qfqrf-qft4d-h3gvb > nul script ospp.vbs / inpkey: v7qkv-4xvvr-xyv4d-f7dfm-8r6bm > nul trjpb-qfqrf-qf4d-qf4d-qf4d-qf4d-qf4d-8r6bm > nul qf4d-qf4d-qf4d-qf4d-h3gvb > nul qf4d-qf4d cscript ospp.vbs / inpkey: d6qfg-vbyp2-xqhm7-j97rh-vvrck > nul goto: EOF : import office activation key : license 15 ; for / F%% X in ('dir / b) ..\root\Licenses15\proplusvl_ kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses15\%%x" >nul for /f %%x in ('dir /b ..\root\Licenses15\proplusvl_ Script ospp.vbs / inpkey: yc7dk-g2np3-2qqc3-2qqc3-j6h88-gvgxt > nul g2np3-2qqc3-j6h88-gvgxt > nul cscript ospp.vbs / inkkey: kbkqt-2nxy-jjjwgp-m62jb-92cd4 > nul , 2qqc3-2qqc3-j6h88-gvgxt > nul jsp.vbs / inkkey: kbkqt-2nxy-jjjjjwgp-m62jb-92cd4 > nul \\\\\\goto: EOF : import office activation key : license 16 for / F%% X in ('dir / b.. Root / licenses 16 / proplusvl)_ kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul for /f %%x in ('dir /b ..\root\Licenses16\proplusvl_ Script ospp.vbs / inslic: "root / license 16 \%% X" > nul "what's more, the script ospp.vbs / inpkey: xqnvk-8jydb-wj9w3-yj8yr-wfg99 > nul script ospp.vbs / inpkey: jnrgm-whdwx-fjjg3-k47qv-drtfm > nul kj9q3-k47qv-drtfm > nul \\\\\\\\\\\\\\\\goto: EOF! Activation activation is not supported. *****echo. echo. echo. Operation completed! Press any key to return to the menu. In the case of a failure failure, please visit http://www.51it.wang for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the activation address of the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the latest version of the activation address for the network connected network can not be connected to the server, please visit http://www.51it.wang to obtain the latest version of the activation address.Echo. echo. echo. Operation completed! Press any key to return to the menu. pause > nul goto begin : uninstall windows activation : unwindows CLS echo. echo. echo. Uninstalling windows activation! In the wake of an error in the region of% I / C, I / C% I / C% I / R / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / script / echo failed to activate Operation completed! Press any key to return to the menu. In this paper, we will discuss the process of the process in order to start the process in the beginning of the process in the beginning of the beginning in the beginning of the beginning in the beginning of the beginning in the beginning of the in the beginning: the unloading office activation activation : Office UN ԡ CLS echo echo. echo. echo. Echo. Checking the installed Office version.. call: getofficeppath 14 Office2010 call: office 14 office 14 Office 2010 call: office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office 14 office office 14 office 14 office 14 Office Office Office 2010 call: getofficepath 15 office2013 call: unoffice 15 office2013 echo. Echo. Testing the installation path of office2016 series products "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" set _ Office16Path=%ProgramFiles%\Microsoft Office\Office16 if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" set _ Office16Path=%ProgramFiles(x86)%\Microsoft Office\Office16 if DEFINED _ Office16path (CLS & echo. & echo. & echo. & echo. & echo. Office 2016 call: unoffice 16 office2016 ) else (CLS & echo. & echo. & echo. & echo. & echo! You may have modified the default installation path! &Echo. & echo. Please visit: https://www.51it.wang/ll/776 to manually uninstall activation according to the tutorial! &Echo.) echo. echo. Operation completed! Press any key to return to the menu. _ Office%1Path ( cd /d "!_ Office% 1path! " echo. echo. Uninstalling% 2 activation! Please wait a moment.... ԡ cscscript / / nologo ospp.vbs / unpkey: h3gvb > h3gvb > nul ԡ script / / nologo ospp.vbs / unpkey: 8r6bm > nul cscscript / / nologo ospp.vbs / unpkey: vvrck > nul script / / nologo ospp.vbs / unpkey: t7ddx > nul script / / nologo ospp.vbs / unpkey: t7ddx > nul / / nologo ospp.vbs / unpkey: 8r6bm > 8r6bm > nul script / / nologo ospp nologo ospp.vbs / unpkey: cw9bm > nul cscript / / nologo ospp.vbs / unpkey: 4t3j4 > nul cscript / / nologo ospp.vbs / unpkey: bt37t >nul cscript //nologo ospp.vbs /unpkey:D3XHX >nul cscript //nologo ospp.vbs /unpkey:X3DWQ >nul cscript //nologo ospp.vbs /unpkey:P4VTT >nul cscript //nologo ospp.vbs /unpkey:VHKC6 >nul cscript //nologo ospp.vbs /unpkey:F9PGB >nul cscript //nologo ospp.vbs /unpkey:83YTP >nul cscript //nologo ospp.vbs /unpkey:CRY7T >nul cscript //nologo ospp.vbs /unpkey:WX8BJ >nul cscript //nologo ospp.vbs /unpkey:Q8TCP >nul cscript //nologo ospp.vbs /unpkey:KHFGJ >nul cscript //nologo ospp.vbs /unpkey:GVGXT >nul cscript //nologo ospp.vbs /unpkey:92CD4 >nul cscript //nologo ospp.vbs /unpkey:2342K >nul cscript //nologo ospp.vbs /unpkey:8QHTT >nul cscript //nologo ospp.vbs /unpkey:RM3B3 >nul cscript //nologo ospp.vbs /unpkey:PGWR7 >nul cscript //nologo ospp.vbs /unpkey:4JM2D >nul cscript //nologo ospp.vbs /unpkey:BG7GB >nul cscript //nologo ospp.vbs /unpkey:F8894 >nul cscript //nologo ospp.vbs /unpkey:TCK7R >nul cscript //nologo ospp.vbs /unpkey:P34VW >nul cscript //nologo ospp.vbs /unpkey:2PMBT >nul cscript //nologo ospp.vbs /unpkey:4RD4F >nul cscript //nologo ospp.vbs /unpkey:FCXK4 >nul cscript //nologo ospp.vbs /unpkey:4GBJ7 >nul cscript //nologo ospp.vbs /unpkey:WFG99 >nul cscript //nologo ospp.vbs /unpkey:DRTFM >nul cscript //nologo ospp.vbs /unpkey:G83KT >nul cscript //nologo ospp.vbs /unpkey:KQBVC >nul cscript //nologo ospp.vbs /unpkey:RJRJK >nul cscript //nologo ospp.vbs /unpkey:W8GF4 >nul cscript //nologo ospp.vbs /unpkey:QPFDW >nul cscript //nologo ospp.vbs /unpkey:7FTBF >nul cscript //nologo ospp.vbs /unpkey:XW3J6 >nul cscript //nologo ospp.vbs /unpkey:6MT9B >Script / / nologo ospp.vbs / unpkey: by6c6 > nul cscript / / nologo ospp.vbs / unpkey: 8837k > nul cscript / / nologo ospp.vbs / unpkey: ddbv6 > ddbv6 > nul cscript / / nologo ospp.vbs / unpkey: 3pfj6 > nul cscript / / nologo ospp.vbs / unpkey: 3pfj6 > nul cscript / / nologo ospp.vbs / unpkey: 3pfj6 > nul cscscript / / nologo / / nologo ospp: VBS / unpkey: 3pfj6 > nul cscscript. VBS / remhst | find / I "successful" > nul - & ( echo. & echo. * * *% 2 uninstallation succeeded × * * & echo.) | (echo. & echo. * * *% 2) Uninstall failed × * * & echo.) CD / D "% - DP0" echo. echo. Operation completed! Press any key to return to the menu. pause > null go to begin ) ; CD / D "% - DP0" ; goto: EOF : view windows activation status: zhangtai ; CLS ; slmgr.vbs - DLV echo. echo! Press any key to return to the menu. pause > nul goto begin : exit : mode con: cols = 60 lines = 9/