脚本

  1. @echo off
  2. :: Set Title of the script
  3. title KMS_VL_ALL_6.8.2 "Dsup"
  4. :: Get Fully Qualified FileName of the script
  5. set _FilePath=%~f0
  6. :: Get Drive and Path containing the script
  7. set _FileDir=%~dp0
  8. :: Set Task Name for the script
  9. set _TaskName=KMS_VL_ALL
  10. :: Enable Extensions and DelayedExpansion of variables
  11. setlocal EnableExtensions EnableDelayedExpansion
  12. ::============================================================================================================================================================
  13. :: Can be 0 (Online Mode - Used for External KMS Server) | 1 (Offline Mode - Used for Internal KMS Server)
  14. set /a _OfflineMode=1
  15. :: Can be 0 (Delete Auto-Renewal Task OR Manual Mode) | 1 (Create Auto-Renewal Task)
  16. set /a _Task=1
  17. :: Can be ONSTART | ONLOGON | MINUTE(1 - 1439) | HOURLY(1 - 23) | DAILY(1 - 365) | WEEKLY(1 - 52) | MONTHLY(1 - 12)
  18. set _TaskFrequency=ONLOGON
  19. :: Can be numbers in the range shown above
  20. set _Modifier=1
  21. ::============================================================================================================================================================
  22. :: Set Parameters for KMS Server
  23. :: Can be Custom ePID; Change '_RandomLevel' value to 0 to enable Custom value
  24. set "_WindowsEPID=03612-00206-471-452343-03-1033-14393.0000-2852016"
  25. :: Can be Custom ePID; Change '_RandomLevel' value to 0 to enable Custom value
  26. set "_Office2010EPID=03612-00096-199-303490-03-1033-14393.0000-2852016"
  27. :: Can be Custom ePID; Change '_RandomLevel' value to 0 to enable Custom value
  28. set "_Office2013EPID=03612-00206-234-394838-03-1033-14393.0000-2852016"
  29. :: Can be Custom ePID; Change '_RandomLevel' value to 0 to enable Custom value
  30. set "_Office2016EPID=03612-00206-437-938923-03-1033-14393.0000-2852016"
  31. :: Can be Custom HardwareID obtained from a Real KMS Server Host
  32. set "_HardwareID=3A1C049600B60076"
  33. :: Can be 0 (UserDefined-Custom ePIDs) | 1 (Randomized ePIDs for every Session) | 2 (Randomized ePIDs for every Request)
  34. set /a _RandomLevel=0
  35. :: Can be (15 to 43200) minutes; Default - 2 hours, Maximum - 30 days
  36. set /a _KMSActivationInterval=120
  37. :: Can be (15 to 43200) minutes; Default - 7 days, Maximum - 30 days
  38. set /a _KMSRenewalInterval=10080
  39. ::============================================================================================================================================================
  40. :: Set Parameters for KMS Client
  41. :: Can be (0-255.0-255.0-255.0-255), but NOT 127.x.x.x/Localhost IPs - Strongly Recommend to leave it as is [Offline Mode]; KMS Server Name/IP [Online Mode]
  42. set "_KMSHost=10.0.0.2"
  43. :: Can be (1 to 65535); Strongly Recommend to leave it as is [Offline Mode]; Since we clear Port value after each run, it resets to 1688 [Online Mode]
  44. set /a _KMSPort=1686
  45. ::============================================================================================================================================================
  46. :: Set Registry Key for DLL Hook
  47. set "_regKey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options"
  48. ::============================================================================================================================================================
  49. :: Registry Keys for SPP and OSPP
  50. set "_hkSPP=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform"
  51. set "_huSPP=HKEY_USERS\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform"
  52. set "_hkOSPP=HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform"
  53. ::============================================================================================================================================================
  54. :: Set KMS Genuine Ticket Validation Parameters
  55. :: Can be 0 (Enable Genuine Ticket) | 1 (Disable Genuine Ticket)
  56. set /a _KMSNoGenTicket=1
  57. :: Registry Keys for setting value
  58. set "_KMSGenuineKey1=HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform"
  59. set "_KMSGenuineKey2=HKLM\SOFTWARE\Classes\AppID\slui.exe"
  60. ::============================================================================================================================================================
  61. :: Get Administrator Rights
  62. fltmc >nul 2>&1 || (
  63. echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs"
  64. echo UAC.ShellExecute "!_FilePath!", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs"
  65. cmd /u /c type "%temp%\GetAdmin.vbs">"%temp%\GetAdminUnicode.vbs"
  66. cscript //nologo "%temp%\GetAdminUnicode.vbs"
  67. del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1
  68. del /f /q "%temp%\GetAdminUnicode.vbs" >nul 2>&1
  69. exit
  70. )
  71. ::============================================================================================================================================================
  72. :: Go to the Path of the Script
  73. pushd "!_FileDir!"
  74. :: Check if [Office 2010 on Windows XP SP3 or Later] OR [Office 2013 or Later on Windows 7 / Server 2008 R2] is Installed
  75. wmic path OfficeSoftwareProtectionService get Version >nul 2>&1 && (
  76. set /a _OSPS=1
  77. ) || (
  78. set /a _OSPS=0
  79. )
  80. :: Check if Office 2016 products are ACTUALLY installed
  81. set /a _Office16=0
  82. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\16.0\Common\InstallRoot /v Path" 2^>nul') do (
  83. set "_msi16=%%b"
  84. )
  85. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\16.0\Common\InstallRoot /v Path" 2^>nul') do (
  86. set "_msi16wow=%%b"
  87. )
  88. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" 2^>nul') do (
  89. set "_ctr16=%%b\Office16"
  90. )
  91. if exist "%_msi16%\OSPP.VBS" (
  92. set /a _Office16=1
  93. ) else if exist "%_msi16wow%\OSPP.VBS" (
  94. set /a _Office16=1
  95. ) else if exist "%_ctr16%\OSPP.VBS" (
  96. set /a _Office16=1
  97. ) else if exist "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" (
  98. set /a _Office16=1
  99. ) else if exist "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" (
  100. set /a _Office16=1
  101. )
  102. :: Check if Office 2013 products are ACTUALLY installed
  103. set /a _Office15=0
  104. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\15.0\Common\InstallRoot /v Path" 2^>nul') do (
  105. set "_msi15=%%b"
  106. )
  107. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot /v Path" 2^>nul') do (
  108. set "_msi15wow=%%b"
  109. )
  110. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" 2^>nul') do (
  111. set "_ctr15=%%b\Office15"
  112. )
  113. if exist "%_msi15%\OSPP.VBS" (
  114. set /a _Office15=1
  115. ) else if exist "%_msi15wow%\OSPP.VBS" (
  116. set /a _Office15=1
  117. ) else if exist "%_ctr15%\OSPP.VBS" (
  118. set /a _Office15=1
  119. ) else if exist "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" (
  120. set /a _Office15=1
  121. ) else if exist "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" (
  122. set /a _Office15=1
  123. )
  124. :: Check if Office 2010 products are ACTUALLY installed
  125. set /a _Office14=0
  126. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot /v Path" 2^>nul') do (
  127. set "_msi14=%%b"
  128. )
  129. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot /v Path" 2^>nul') do (
  130. set "_msi14wow=%%b"
  131. )
  132. for /f "tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" 2^>nul') do (
  133. set "_ctr14=%%b\Office14"
  134. )
  135. if exist "%_msi14%\OSPP.VBS" (
  136. set /a _Office14=1
  137. ) else if exist "%_msi14wow%\OSPP.VBS" (
  138. set /a _Office14=1
  139. ) else if exist "%_ctr14%\OSPP.VBS" (
  140. set /a _Office14=1
  141. ) else if exist "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" (
  142. set /a _Office14=1
  143. ) else if exist "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" (
  144. set /a _Office14=1
  145. )
  146. :: Get Architecture of the OS installed; OS Locale/Language Independent from Windows XP / Server 2003 and Later
  147. for /f "tokens=2 delims==" %%a in ('wmic path Win32_Processor get AddressWidth /value') do (
  148. set _OSarch=%%a-bit
  149. )
  150. :: Get Windows OS Current Edition
  151. for /f "tokens=3 delims=: " %%a in ('dism /Online /Get-CurrentEdition /English ^| findstr /i "Current Edition :"') do (
  152. set _EditionID=%%a
  153. )
  154. :: Get Windows OS version information and goto Respective Function
  155. for /f "tokens=2 delims==" %%a in ('wmic path Win32_OperatingSystem get BuildNumber /value') do (
  156. set /a _WinBuild=%%a
  157. )
  158. if %_WinBuild% GEQ 9600 (
  159. echo Program Started...Please Wait...
  160. goto :Win8.1AndLater
  161. ) else if %_WinBuild% GEQ 2600 (
  162. echo Program Started...Please Wait...
  163. goto :Win8AndBelow
  164. ) else (
  165. echo KMS_VL_ALL is NOT supported on this OS.
  166. echo Press any key to exit...
  167. pause >nul
  168. exit
  169. )
  170. ::============================================================================================================================================================
  171. :Close
  172. :: Create/Delete Auto-Renewal Task based on parameter; Windows XP SP3 or Later Compatible
  173. if %_Task% EQU 1 (
  174. schtasks /query /fo list 2>nul | findstr /i "%_TaskName%" >nul 2>&1 && (
  175. schtasks /delete /tn "%_TaskName%" /f >nul 2>&1
  176. )
  177. for /d %%a in (ONSTART,ONLOGON) do (
  178. if /i %_TaskFrequency% EQU %%a (
  179. schtasks /create /tn "%_TaskName%" /ru "SYSTEM" /sc "%_TaskFrequency%" /tr "!_FilePath!" >nul 2>&1 && (echo.&echo Auto-Renewal Task is Created.)
  180. ) else (
  181. schtasks /create /tn "%_TaskName%" /ru "SYSTEM" /sc "%_TaskFrequency%" /mo "%_Modifier%" /tr "!_FilePath!" >nul 2>&1 && (echo.&echo Auto-Renewal Task is Created.)
  182. )
  183. )
  184. )
  185. if %_Task% NEQ 1 (
  186. schtasks /query /fo list 2>nul | findstr /i "%_TaskName%" >nul 2>&1 && (
  187. schtasks /delete /tn "%_TaskName%" /f >nul 2>&1
  188. echo.
  189. echo Auto-Renewal Task is Deleted.
  190. )
  191. )
  192. echo.
  193. echo Closing in 1 Seconds...
  194. ping 127.0.0.1 -n 1 >nul 2>&1
  195. exit
  196. ::============================================================================================================================================================
  197. :Win8.1AndLater
  198. if %_OfflineMode% EQU 1 (
  199. REM Stop 'sppsvc' and 'osppsvc'
  200. call :StopService "sppsvc"
  201. if %_OSPS% NEQ 0 (
  202. call :StopService "osppsvc"
  203. )
  204. REM Copy the DLL Injection files to system32 folder based on OS architecture
  205. xcopy "%_OSarch%\SppExtComObjPatcher.exe" "%SystemRoot%\system32\" /y /q >nul 2>&1
  206. xcopy "%_OSarch%\SppExtComObjHook.dll" "%SystemRoot%\system32\" /y /q >nul 2>&1
  207. REM Create registry keys for DLL Hook
  208. call :CreateIFEOEntry "SppExtComObj.exe"
  209. if %_OSPS% NEQ 0 (
  210. call :CreateIFEOEntry "osppsvc.exe"
  211. )
  212. REM Add Firewall Exceptions for VLMCSD and Start KMS Server
  213. call :AddFirewallRule
  214. call :StartKMS
  215. )
  216. :: Call Windows and Office Activation Main Functions
  217. call :SLSActivation
  218. if %_OSPS% NEQ 0 (
  219. call :OSPSActivation
  220. )
  221. :: Enable/Disable KMS Genuine Ticket Validation
  222. call :KMSGenuineTicket
  223. if %_OfflineMode% EQU 1 (
  224. REM Stop KMS Server and Remove Firewall Exceptions for VLMCSD
  225. call :StopKMS
  226. call :RemoveFirewallRule
  227. REM Stop 'sppsvc' and 'osppsvc'
  228. call :StopService "sppsvc"
  229. if %_OSPS% NEQ 0 (
  230. call :StopService "osppsvc"
  231. )
  232. REM Delete the DLL Injection files from system32 folder
  233. del /f /q "%SystemRoot%\system32\SppExtComObjPatcher.exe" >nul 2>&1
  234. del /f /q "%SystemRoot%\system32\SppExtComObjHook.dll" >nul 2>&1
  235. REM Remove registry keys for DLL Hook
  236. call :RemoveIFEOEntry "SppExtComObj.exe"
  237. if %_OSPS% NEQ 0 (
  238. call :RemoveIFEOEntry "osppsvc.exe"
  239. )
  240. REM Start 'sppsvc'
  241. sc start sppsvc trigger=timer;sessionid=0 >nul 2>&1
  242. )
  243. call :Close
  244. ::============================================================================================================================================================
  245. :Win8AndBelow
  246. :: Exit if No Office 2010 product is installed on Windows XP SP3/Server 2003 R2
  247. if %_OSPS% EQU 0 (
  248. if %_WinBuild% LSS 6000 (
  249. echo.
  250. echo No Office 2010 Product Detected...
  251. call :Close
  252. )
  253. )
  254. if %_OfflineMode% EQU 1 (
  255. REM Localhost IP can be used for Windows 8 and Below
  256. set "_KMSHost=127.0.0.2"
  257. REM Add Firewall Exceptions for VLMCSD and Start KMS Server
  258. call :AddFirewallRule
  259. call :StartKMS
  260. )
  261. :: Call Windows and Office Activation Main Functions
  262. if %_WinBuild% GEQ 6000 (
  263. call :SLSActivation
  264. )
  265. if %_OSPS% NEQ 0 (
  266. call :OSPSActivation
  267. )
  268. if %_OfflineMode% EQU 1 (
  269. REM Stop KMS Server and Remove Firewall Exceptions for VLMCSD
  270. call :StopKMS
  271. call :RemoveFirewallRule
  272. )
  273. call :Close
  274. ::============================================================================================================================================================
  275. :AddFirewallRule
  276. :: Add VLMCSD KMS Exception to Windows Firewall; Windows XP SP3 or Later Compatible
  277. netsh firewall delete allowedprogram "!_FileDir!32-bit\vlmcsd.exe" >nul 2>&1
  278. netsh firewall add allowedprogram "!_FileDir!32-bit\vlmcsd.exe" "vlmcsd" >nul 2>&1
  279. exit /b
  280. ::============================================================================================================================================================
  281. :RemoveFirewallRule
  282. :: Remove VLMCSD KMS Exception from Windows Firewall
  283. netsh firewall delete allowedprogram "!_FileDir!32-bit\vlmcsd.exe" >nul 2>&1
  284. exit /b
  285. ::============================================================================================================================================================
  286. :StartKMS
  287. :: Start VLMCSD KMS Server
  288. if %_RandomLevel% EQU 0 (
  289. start "" /b "!_FileDir!32-bit\vlmcsd.exe" -P%_KMSPort% -0%_Office2010EPID% -3%_Office2013EPID% -6%_Office2016EPID% -w%_WindowsEPID% -H%_HardwareID% -R%_KMSRenewalInterval% -A%_KMSActivationInterval% -T0 -e >nul 2>&1
  290. ) else (
  291. start "" /b "!_FileDir!32-bit\vlmcsd.exe" -r%_RandomLevel% -P%_KMSPort% -H%_HardwareID% -R%_KMSRenewalInterval% -A%_KMSActivationInterval% -T0 -e >nul 2>&1
  292. )
  293. :: Mind boggling BUG Fix; Windows Vista or below takes some time to start KMS Server which prevents Activation; So add delay for it to successfully start
  294. if %_WinBuild% LSS 7600 (
  295. ping 127.0.0.1 -n 12 >nul 2>&1
  296. )
  297. exit /b
  298. ::============================================================================================================================================================
  299. :StopKMS
  300. :: Stop VLMCSD KMS Server
  301. taskkill /im "vlmcsd.exe" /t /f >nul 2>&1
  302. exit /b
  303. ::============================================================================================================================================================
  304. :KMSGenuineTicket
  305. :: Enable/Disable KMS Genuine Ticket Validation registry keys based on user parameter
  306. reg add "%_KMSGenuineKey1%" /v NoGenTicket /t REG_DWORD /d %_KMSNoGenTicket% /f >nul 2>&1
  307. reg add "%_KMSGenuineKey2%" /v NoGenTicket /t REG_DWORD /d %_KMSNoGenTicket% /f >nul 2>&1
  308. exit /b
  309. ::============================================================================================================================================================
  310. :CreateIFEOEntry
  311. :: Create DLL Injection Registry keys based on parameter
  312. reg add "%_regKey%\%~1" /f /v "Debugger" /t REG_SZ /d "SppExtComObjPatcher.exe" >nul 2>&1
  313. reg add "%_regKey%\%~1" /f /v "KMS_Emulation" /t REG_DWORD /d 0 >nul 2>&1
  314. exit /b
  315. ::============================================================================================================================================================
  316. :RemoveIFEOEntry
  317. :: Remove DLL Injection Registry keys based on parameter
  318. if '%~1' NEQ 'osppsvc.exe' (
  319. reg delete "%_regKey%\%~1" /f >nul 2>&1
  320. )
  321. if '%~1' EQU 'osppsvc.exe' (
  322. reg delete "%_regKey%\osppsvc.exe" /f /v "Debugger" >nul 2>&1
  323. reg delete "%_regKey%\osppsvc.exe" /f /v "KMS_Emulation" >nul 2>&1
  324. )
  325. exit /b
  326. ::============================================================================================================================================================
  327. :StopService
  328. :: Stop service based on parameter
  329. sc query "%1" | findstr /i "STOPPED" >nul 2>&1 || (
  330. net stop "%1" /y >nul 2>&1
  331. )
  332. sc query "%1" | findstr /i "STOPPED" >nul 2>&1 || (
  333. sc stop "%1" >nul 2>&1
  334. )
  335. exit /b
  336. ::============================================================================================================================================================
  337. :SLSActivation
  338. reg delete %_hkSPP%\55c92734-d682-4d71-983e-d6ec3f16059f /f >nul 2>&1
  339. reg delete %_hkSPP%\0ff1ce15-a989-479d-af46-f275c6370663 /f >nul 2>&1
  340. set _spp=SoftwareLicensingProduct
  341. set _sps=SoftwareLicensingService
  342. :: Detect if Office 2013 [Volume Licensed] or Later is Installed
  343. wmic path %_spp% where (Description like '%%KMSCLIENT%%') get Name /value 2>nul | findstr /i "Office" >nul 2>&1 && (
  344. set /a _OfficeVL=1
  345. ) || (
  346. set /a _OfficeVL=0
  347. if %_WinBuild% GEQ 9200 (
  348. echo.
  349. echo No Office 2013 or Later VL Product Detected; Retail Versions need to be converted to VL first.
  350. )
  351. )
  352. :: Detect if installed Windows supports KMS Activation
  353. wmic path %_spp% where (Description like '%%KMSCLIENT%%') get Name /value 2>nul | findstr /i "Windows" >nul 2>&1 || (
  354. echo.
  355. echo No Supported KMS Client Windows Detected...
  356. if %_OfficeVL% EQU 0 (
  357. exit /b
  358. )
  359. )
  360. :: Call Common Core Activation Routines
  361. call :CommonSLSandOSPS
  362. reg delete %_huSPP%\55c92734-d682-4d71-983e-d6ec3f16059f /f >nul 2>&1
  363. reg delete %_huSPP%\0ff1ce15-a989-479d-af46-f275c6370663 /f >nul 2>&1
  364. exit /b
  365. ::============================================================================================================================================================
  366. :OSPSActivation
  367. reg delete %_hkOSPP%\59a52881-a989-479d-af46-f275c6370663 /f >nul 2>&1
  368. reg delete %_hkOSPP%\0ff1ce15-a989-479d-af46-f275c6370663 /f >nul 2>&1
  369. set _spp=OfficeSoftwareProtectionProduct
  370. set _sps=OfficeSoftwareProtectionService
  371. :: Determine if installed Office product is Retail or VL version; Exit if no VolumeLicensed Office is detected
  372. wmic path %_spp% where (Description like '%%KMSCLIENT%%') get Name >nul 2>&1 || (
  373. if %_WinBuild% LSS 9200 (
  374. echo.
  375. echo No Office 2010 or Later VL Product Detected; Retail Versions need to be converted to VL first.
  376. exit /b
  377. ) else (
  378. echo.
  379. echo No Office 2010 VL Product Detected; Retail Versions need to be converted to VL first.
  380. exit /b
  381. )
  382. )
  383. :: Call Common Core Activation Routines
  384. call :CommonSLSandOSPS
  385. exit /b
  386. ::============================================================================================================================================================
  387. :CommonSLSandOSPS
  388. :: Get SoftwareLicensingService/OfficeSoftwareProtectionService version to set 'KMSHost' and 'KMSPort' values
  389. for /f "tokens=2 delims==" %%a in ('"wmic path %_sps% get Version /value"') do (
  390. set _ver=%%a
  391. )
  392. wmic path %_sps% where version='%_ver%' call SetKeyManagementServiceMachine MachineName="%_KMSHost%" >nul 2>&1
  393. wmic path %_sps% where version='%_ver%' call SetKeyManagementServicePort %_KMSPort% >nul 2>&1
  394. :: This is available only on SoftwareLicensingService version 6.2 and later; Not available for OfficeSoftwareProtectionService
  395. wmic path %_sps% where version='%_ver%' call SetVLActivationTypeEnabled 2 >nul 2>&1
  396. :: For all the supported KMS Clients in SoftwareLicensingProduct/OfficeSoftwareProtectionProduct call 'CheckProduct'
  397. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Description like '%%KMSCLIENT%%') get ID /value"') do (
  398. set _ActivationID=%%a
  399. call :CheckProduct !_ActivationID!
  400. )
  401. :: Clear KMS Server details from KMS Client
  402. wmic path %_sps% where version='%_ver%' call ClearKeyManagementServiceMachine >nul 2>&1
  403. wmic path %_sps% where version='%_ver%' call ClearKeyManagementServicePort >nul 2>&1
  404. :: This is available only on SoftwareLicensingService version 6.2 and later; Not available for OfficeSoftwareProtectionService
  405. wmic path %_sps% where version='%_ver%' call ClearVLActivationTypeEnabled >nul 2>&1
  406. wmic path %_sps% where version='%_ver%' call DisableKeyManagementServiceDnsPublishing 1 >nul 2>&1
  407. wmic path %_sps% where version='%_ver%' call DisableKeyManagementServiceHostCaching 1 >nul 2>&1
  408. exit /b
  409. ::============================================================================================================================================================
  410. :CheckProduct
  411. :: Ugly hack for Unknown Windows 10 Enterprise 2015 LTSB SKU-ID
  412. if '%1' EQU 'b71515d9-89a2-4c60-88c8-656fbcca7f3a' (
  413. exit /b
  414. )
  415. :: Ugly checks for Unknown Windows 10 edition conversions in build 1607
  416. if '%1' EQU '3f1afc82-f8ac-4f6c-8005-1d233e606eee' (
  417. if /i %_EditionID% EQU Professional (
  418. exit /b
  419. )
  420. )
  421. if '%1' EQU '73111121-5638-40f6-bc11-f1d7b0d64300' (
  422. if /i %_EditionID% EQU Professional (
  423. exit /b
  424. )
  425. )
  426. if '%1' EQU '2de67392-b7a7-462a-b1ca-108dd189f588' (
  427. if /i %_EditionID% EQU ProfessionalEducation (
  428. exit /b
  429. )
  430. )
  431. if '%1' EQU '73111121-5638-40f6-bc11-f1d7b0d64300' (
  432. if /i %_EditionID% EQU ProfessionalEducation (
  433. exit /b
  434. )
  435. )
  436. if '%1' EQU '2de67392-b7a7-462a-b1ca-108dd189f588' (
  437. if /i %_EditionID% EQU Enterprise (
  438. exit /b
  439. )
  440. )
  441. if '%1' EQU '3f1afc82-f8ac-4f6c-8005-1d233e606eee' (
  442. if /i %_EditionID% EQU Enterprise (
  443. exit /b
  444. )
  445. )
  446. if '%1' EQU '5300b18c-2e33-4dc2-8291-47ffcec746dd' (
  447. if /i %_EditionID% EQU ProfessionalN (
  448. exit /b
  449. )
  450. )
  451. if '%1' EQU 'e272e3e2-732f-4c65-a8f0-484747d0d947' (
  452. if /i %_EditionID% EQU ProfessionalN (
  453. exit /b
  454. )
  455. )
  456. if '%1' EQU 'a80b5abf-76ad-428b-b05d-a47d2dffeebf' (
  457. if /i %_EditionID% EQU ProfessionalEducationN (
  458. exit /b
  459. )
  460. )
  461. if '%1' EQU 'e272e3e2-732f-4c65-a8f0-484747d0d947' (
  462. if /i %_EditionID% EQU ProfessionalEducationN (
  463. exit /b
  464. )
  465. )
  466. if '%1' EQU 'a80b5abf-76ad-428b-b05d-a47d2dffeebf' (
  467. if /i %_EditionID% EQU EnterpriseN (
  468. exit /b
  469. )
  470. )
  471. if '%1' EQU '5300b18c-2e33-4dc2-8291-47ffcec746dd' (
  472. if /i %_EditionID% EQU EnterpriseN (
  473. exit /b
  474. )
  475. )
  476. :: If Detected KMS Client already has GVLK, call Activate function
  477. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where ID='%1' get PartialProductKey /value"') do (
  478. set _PartialKey=%%a
  479. )
  480. :: Note that the below check ONLY works when variable don't contain quotes
  481. if [%_PartialKey%] NEQ [] (
  482. call :Activate %1
  483. exit /b
  484. )
  485. :: If Detected KMS Client don't have GVLK, do checks for permanent activation, then install GVLK and activate it
  486. for /f "tokens=3 delims==, " %%a in ('"wmic path %_spp% where ID='%1' get Name /value"') do (
  487. set _ProductName=%%a
  488. )
  489. if '%_ProductName%' EQU '16' (
  490. if %_Office16% EQU 0 (
  491. exit /b
  492. )
  493. call :CheckOffice16 %1
  494. exit /b
  495. ) else if '%_ProductName%' EQU '15' (
  496. if %_Office15% EQU 0 (
  497. exit /b
  498. )
  499. call :CheckOffice15 %1
  500. exit /b
  501. ) else if '%_ProductName%' EQU '14' (
  502. if %_Office14% EQU 0 (
  503. exit /b
  504. )
  505. call :CheckOffice14 %1
  506. exit /b
  507. ) else (
  508. call :CheckWindows %1
  509. exit /b
  510. )
  511. ::============================================================================================================================================================
  512. :CheckWindows
  513. wmic path %_spp% where (LicenseStatus='1' and GracePeriodRemaining='0') get Name 2>nul | findstr /i "Windows" >nul 2>&1 && (
  514. echo.
  515. echo Detected Windows is permanently activated.
  516. exit /b
  517. )
  518. :: If Windows is not permanently activated, Install GVLK and Activate
  519. call :SelectKey %1
  520. exit /b
  521. ::============================================================================================================================================================
  522. :CheckOffice16
  523. set /a _ls=0
  524. if '%1' EQU '9caabccb-61b1-4b4b-8bec-d10a3c3ac2ce' (
  525. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%Office16MondoVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  526. if !_ls! EQU 1 (
  527. echo.
  528. echo Detected Office 2016 Mondo is permanently MAK activated.
  529. exit /b
  530. ) else (
  531. call :SelectKey %1
  532. exit /b
  533. )
  534. )
  535. if '%1' EQU 'd450596f-894d-49e0-966a-fd39ed4c4c64' (
  536. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%Office16ProPlusVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  537. if !_ls! EQU 1 (
  538. echo.
  539. echo Detected Office 2016 ProPlus is permanently MAK activated.
  540. exit /b
  541. ) else (
  542. call :SelectKey %1
  543. exit /b
  544. )
  545. )
  546. if '%1' EQU '6bf301c1-b94a-43e9-ba31-d494598c47fb' (
  547. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%Office16VisioProVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  548. if !_ls! EQU 1 (
  549. echo.
  550. echo Detected Visio 2016 Pro is permanently MAK activated.
  551. exit /b
  552. ) else (
  553. call :SelectKey %1
  554. exit /b
  555. )
  556. )
  557. if '%1' EQU '4f414197-0fc2-4c01-b68a-86cbb9ac254c' (
  558. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%Office16ProjectProVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  559. if !_ls! EQU 1 (
  560. echo.
  561. echo Detected Project 2016 Pro is permanently MAK activated.
  562. exit /b
  563. ) else (
  564. call :SelectKey %1
  565. exit /b
  566. )
  567. )
  568. if '%1' EQU 'dedfa23d-6ed1-45a6-85dc-63cae0546de6' (
  569. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%Office16StandardVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  570. if !_ls! EQU 1 (
  571. echo.
  572. echo Detected Office 2016 Standard is permanently MAK activated.
  573. exit /b
  574. ) else (
  575. call :SelectKey %1
  576. exit /b
  577. )
  578. )
  579. if '%1' EQU 'aa2a7821-1827-4c2c-8f1d-4513a34dda97' (
  580. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%Office16VisioStdVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  581. if !_ls! EQU 1 (
  582. echo.
  583. echo Detected Visio 2016 Standard is permanently MAK activated.
  584. exit /b
  585. ) else (
  586. call :SelectKey %1
  587. exit /b
  588. )
  589. )
  590. if '%1' EQU 'da7ddabc-3fbe-4447-9e01-6ab7440b4cd4' (
  591. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%Office16ProjectStdVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  592. if !_ls! EQU 1 (
  593. echo.
  594. echo Detected Project 2016 Standard is permanently MAK activated.
  595. exit /b
  596. ) else (
  597. call :SelectKey %1
  598. exit /b
  599. )
  600. )
  601. :: If Office 2016 product is not permanently activated, Install GVLK and Activate
  602. call :SelectKey %1
  603. exit /b
  604. ::============================================================================================================================================================
  605. :CheckOffice15
  606. set /a _ls=0
  607. if '%1' EQU 'dc981c6b-fc8e-420f-aa43-f8f33e5c0923' (
  608. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeMondoVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  609. if !_ls! EQU 1 (
  610. echo.
  611. echo Detected Office 2013 Mondo is permanently MAK activated.
  612. exit /b
  613. ) else (
  614. call :SelectKey %1
  615. exit /b
  616. )
  617. )
  618. if '%1' EQU 'b322da9c-a2e2-4058-9e4e-f59a6970bd69' (
  619. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeProPlusVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  620. if !_ls! EQU 1 (
  621. echo.
  622. echo Detected Office 2013 ProPlus is permanently MAK activated.
  623. exit /b
  624. ) else (
  625. call :SelectKey %1
  626. exit /b
  627. )
  628. )
  629. if '%1' EQU 'e13ac10e-75d0-4aff-a0cd-764982cf541c' (
  630. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioProVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  631. if !_ls! EQU 1 (
  632. echo.
  633. echo Detected Visio 2013 Pro is permanently MAK activated.
  634. exit /b
  635. ) else (
  636. call :SelectKey %1
  637. exit /b
  638. )
  639. )
  640. if '%1' EQU '4a5d124a-e620-44ba-b6ff-658961b33b9a' (
  641. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeProjectProVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  642. if !_ls! EQU 1 (
  643. echo.
  644. echo Detected Project 2013 Pro is permanently MAK activated.
  645. exit /b
  646. ) else (
  647. call :SelectKey %1
  648. exit /b
  649. )
  650. )
  651. if '%1' EQU 'b13afb38-cd79-4ae5-9f7f-eed058d750ca' (
  652. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeStandardVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  653. if !_ls! EQU 1 (
  654. echo.
  655. echo Detected Office 2013 Standard is permanently MAK activated.
  656. exit /b
  657. ) else (
  658. call :SelectKey %1
  659. exit /b
  660. )
  661. )
  662. if '%1' EQU 'ac4efaf0-f81f-4f61-bdf7-ea32b02ab117' (
  663. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioStdVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  664. if !_ls! EQU 1 (
  665. echo.
  666. echo Detected Visio 2013 Standard is permanently MAK activated.
  667. exit /b
  668. ) else (
  669. call :SelectKey %1
  670. exit /b
  671. )
  672. )
  673. if '%1' EQU '427a28d1-d17c-4abf-b717-32c780ba6f07' (
  674. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeProjectStdVL_MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  675. if !_ls! EQU 1 (
  676. echo.
  677. echo Detected Project 2013 Standard is permanently MAK activated.
  678. exit /b
  679. ) else (
  680. call :SelectKey %1
  681. exit /b
  682. )
  683. )
  684. :: If Office 2013 product is not permanently activated, Install GVLK and Activate
  685. call :SelectKey %1
  686. exit /b
  687. ::============================================================================================================================================================
  688. :CheckOffice14
  689. set /a _ls=0
  690. set /a _ls2=0
  691. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioPrem-MAK%%') get LicenseStatus /value" 2^>nul') do set /a _vPrem=%%a
  692. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioPro-MAK%%') get LicenseStatus /value" 2^>nul') do set /a _vPro=%%a
  693. if '%1' EQU '6f327760-8c5c-417c-9b61-836a98287e0c' (
  694. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeProPlus-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  695. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeProPlusAcad-MAK%%') get LicenseStatus /value"') do set /a _ls2=%%a
  696. if !_ls! EQU 1 (
  697. echo.
  698. echo Detected Office 2010 ProPlus is permanently MAK activated.
  699. exit /b
  700. )
  701. if !_ls2! EQU 1 (
  702. echo.
  703. echo Detected Office 2010 ProPlus Academic is permanently MAK activated.
  704. exit /b
  705. ) else (
  706. call :SelectKey %1
  707. exit /b
  708. )
  709. )
  710. if '%1' EQU '09ed9640-f020-400a-acd8-d7d867dfd9c2' (
  711. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeMondo-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  712. if !_ls! EQU 1 (
  713. echo.
  714. echo Detected Office 2010 Mondo is permanently MAK activated.
  715. exit /b
  716. ) else (
  717. call :SelectKey %1
  718. exit /b
  719. )
  720. )
  721. if '%1' EQU 'df133ff7-bf14-4f95-afe3-7b48e7e331ef' (
  722. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeProjectPro-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  723. if !_ls! EQU 1 (
  724. echo.
  725. echo Detected Project 2010 Pro is permanently MAK activated.
  726. exit /b
  727. ) else (
  728. call :SelectKey %1
  729. exit /b
  730. )
  731. )
  732. if '%1' EQU '5dc7bf61-5ec9-4996-9ccb-df806a2d0efe' (
  733. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeProjectStd-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  734. if !_ls! EQU 1 (
  735. echo.
  736. echo Detected Project 2010 Standard is permanently MAK activated.
  737. exit /b
  738. ) else (
  739. call :SelectKey %1
  740. exit /b
  741. )
  742. )
  743. if '%1' EQU '9da2a678-fb6b-4e67-ab84-60dd6a9c819a' (
  744. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeStandard-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  745. if !_ls! EQU 1 (
  746. echo.
  747. echo Detected Office 2010 Standard is permanently MAK activated.
  748. exit /b
  749. ) else (
  750. call :SelectKey %1
  751. exit /b
  752. )
  753. )
  754. if '%1' EQU 'ea509e87-07a1-4a45-9edc-eba5a39f36af' (
  755. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeSmallBusBasics-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  756. if !_ls! EQU 1 (
  757. echo.
  758. echo Detected Office 2010 Small Business is permanently MAK activated.
  759. exit /b
  760. ) else (
  761. call :SelectKey %1
  762. exit /b
  763. )
  764. )
  765. if '%1' EQU '92236105-bb67-494f-94c7-7f7a607929bd' (
  766. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioPrem-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  767. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioPro-MAK%%') get LicenseStatus /value"') do set /a _ls2=%%a
  768. if !_ls! EQU 1 (
  769. echo.
  770. echo Detected Visio 2010 Premium is permanently MAK activated.
  771. exit /b
  772. )
  773. if !_ls2! EQU 1 (
  774. echo.
  775. echo Detected Visio 2010 Pro is permanently MAK activated.
  776. exit /b
  777. ) else (
  778. call :SelectKey %1
  779. exit /b
  780. )
  781. )
  782. if defined _vPrem exit /b
  783. if '%1' EQU 'e558389c-83c3-4b29-adfe-5e4d7f46c358' (
  784. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioPro-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  785. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioStd-MAK%%') get LicenseStatus /value"') do set /a _ls2=%%a
  786. if !_ls! EQU 1 (
  787. echo.
  788. echo Detected Visio 2010 Pro is permanently MAK activated.
  789. exit /b
  790. )
  791. if !_ls2! EQU 1 (
  792. echo.
  793. echo Detected Visio 2010 Standard is permanently MAK activated.
  794. exit /b
  795. ) else (
  796. call :SelectKey %1
  797. exit /b
  798. )
  799. )
  800. if defined _vPro exit /b
  801. if '%1' EQU '9ed833ff-4f92-4f36-b370-8683a4f13275' (
  802. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where (Name like '%%OfficeVisioStd-MAK%%') get LicenseStatus /value"') do set /a _ls=%%a
  803. if !_ls! EQU 1 (
  804. echo.
  805. echo Detected Visio 2010 Standard is permanently MAK activated.
  806. exit /b
  807. ) else (
  808. call :SelectKey %1
  809. exit /b
  810. )
  811. )
  812. :: If Office 2010 product is not permanently activated, Install GVLK and Activate
  813. call :SelectKey %1
  814. exit /b
  815. ::============================================================================================================================================================
  816. :Activate
  817. :: Clear any manually set KMSHostIP and KMSPort with /skms or /sethst; Since they override KMSHostIP and KMSPort values set for SLS/OSPS
  818. wmic path %_spp% where ID='%1' call ClearKeyManagementServiceMachine >nul 2>&1
  819. wmic path %_spp% where ID='%1' call ClearKeyManagementServicePort >nul 2>&1
  820. :: Call Activate method of the corresponding KMS Client
  821. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where ID='%1' get Name /value"') do (
  822. echo.
  823. echo Attempting to Activate %%a
  824. )
  825. wmic path %_spp% where ID='%1' call Activate >nul 2>&1
  826. :: Get Remaining Grace Period of the KMS Client
  827. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where ID='%1' get GracePeriodRemaining /value"') do (
  828. set /a _gprMinutes=%%a
  829. )
  830. if %_gprMinutes% EQU 43200 (
  831. echo Windows Core/ProfessionalWMC Activation Successful
  832. echo Remaining Period: 30 days ^(%_gprMinutes% minutes^)
  833. exit /b
  834. )
  835. if %_gprMinutes% EQU 64800 (
  836. echo Windows Core/ProfessionalWMC Activation Successful
  837. echo Remaining Period: 45 days ^(%_gprMinutes% minutes^)
  838. exit /b
  839. )
  840. if %_gprMinutes% EQU 259200 (
  841. echo Product Activation Successful
  842. ) else (
  843. echo Product Activation Failed
  844. )
  845. set /a _gprDays=%_gprMinutes%/1440
  846. echo Remaining Period: %_gprDays% days ^(%_gprMinutes% minutes^)
  847. exit /b
  848. ::============================================================================================================================================================
  849. :SelectKey
  850. :: Select GenericVolumeLicenseKey based on Activation ID (SKU-ID) and Install it, if found
  851. for /f "tokens=2 delims==" %%a in ('"wmic path %_spp% where ID='%1' get Name /value"') do (
  852. set _Name=%%a
  853. echo.
  854. echo Searching GenericVolumeLicenseKey for %%a
  855. goto :%1 2>nul || goto :KeyNotFound
  856. )
  857. ::============================================================================================================================================================
  858. :: Office 2016 Professional Plus
  859. :d450596f-894d-49e0-966a-fd39ed4c4c64
  860. set _key=XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
  861. goto :InstallKey
  862. :: Office 2016 Standard
  863. :dedfa23d-6ed1-45a6-85dc-63cae0546de6
  864. set _key=JNRGM-WHDWX-FJJG3-K47QV-DRTFM
  865. goto :InstallKey
  866. :: Office 2016 Mondo
  867. :9caabccb-61b1-4b4b-8bec-d10a3c3ac2ce
  868. set _key=HFTND-W9MK4-8B7MJ-B6C4G-XQBR2
  869. goto :InstallKey
  870. :: Project 2016 Professional
  871. :4f414197-0fc2-4c01-b68a-86cbb9ac254c
  872. set _key=YG9NW-3K39V-2T3HJ-93F3Q-G83KT
  873. goto :InstallKey
  874. :: Project 2016 Standard
  875. :da7ddabc-3fbe-4447-9e01-6ab7440b4cd4
  876. set _key=GNFHQ-F6YQM-KQDGJ-327XX-KQBVC
  877. goto :InstallKey
  878. :: Visio 2016 Professional
  879. :6bf301c1-b94a-43e9-ba31-d494598c47fb
  880. set _key=PD3PC-RHNGV-FXJ29-8JK7D-RJRJK
  881. goto :InstallKey
  882. :: Visio 2016 Standard
  883. :aa2a7821-1827-4c2c-8f1d-4513a34dda97
  884. set _key=7WHWN-4T7MP-G96JF-G33KR-W8GF4
  885. goto :InstallKey
  886. :: Access 2016
  887. :67c0fc0c-deba-401b-bf8b-9c8ad8395804
  888. set _key=GNH9Y-D2J4T-FJHGG-QRVH7-QPFDW
  889. goto :InstallKey
  890. :: Excel 2016
  891. :c3e65d36-141f-4d2f-a303-a842ee756a29
  892. set _key=9C2PK-NWTVB-JMPW8-BFT28-7FTBF
  893. goto :InstallKey
  894. :: OneNote 2016
  895. :d8cace59-33d2-4ac7-9b1b-9b72339c51c8
  896. set _key=DR92N-9HTF2-97XKM-XW2WJ-XW3J6
  897. goto :InstallKey
  898. :: Outlook 2016
  899. :ec9d9265-9d1e-4ed0-838a-cdc20f2551a1
  900. set _key=R69KK-NTPKF-7M3Q4-QYBHW-6MT9B
  901. goto :InstallKey
  902. :: PowerPoint 2016
  903. :d70b1bba-b893-4544-96e2-b7a318091c33
  904. set _key=J7MQP-HNJ4Y-WJ7YM-PFYGF-BY6C6
  905. goto :InstallKey
  906. :: Publisher 2016
  907. :041a06cb-c5b8-4772-809f-416d03d16654
  908. set _key=F47MM-N3XJP-TQXJ9-BP99D-8K837
  909. goto :InstallKey
  910. :: Skype for Business 2016
  911. :83e04ee1-fa8d-436d-8994-d31a862cab77
  912. set _key=869NQ-FJ69K-466HW-QYCP2-DDBV6
  913. goto :InstallKey
  914. :: Word 2016
  915. :bb11badf-d8aa-470e-9311-20eaf80fe5cc
  916. set _key=WXY84-JN2Q9-RBCCQ-3Q3J3-3PFJ6
  917. goto :InstallKey
  918. ::============================================================================================================================================================
  919. :: Office 2013 Professional Plus
  920. :b322da9c-a2e2-4058-9e4e-f59a6970bd69
  921. set _key=YC7DK-G2NP3-2QQC3-J6H88-GVGXT
  922. goto :InstallKey
  923. :: Office 2013 Standard
  924. :b13afb38-cd79-4ae5-9f7f-eed058d750ca
  925. set _key=KBKQT-2NMXY-JJWGP-M62JB-92CD4
  926. goto :InstallKey
  927. :: Project 2013 Professional
  928. :4a5d124a-e620-44ba-b6ff-658961b33b9a
  929. set _key=FN8TT-7WMH6-2D4X9-M337T-2342K
  930. goto :InstallKey
  931. :: Project 2013 Standard
  932. :427a28d1-d17c-4abf-b717-32c780ba6f07
  933. set _key=6NTH3-CW976-3G3Y2-JK3TX-8QHTT
  934. goto :InstallKey
  935. :: Visio 2013 Professional
  936. :e13ac10e-75d0-4aff-a0cd-764982cf541c
  937. set _key=C2FG9-N6J68-H8BTJ-BW3QX-RM3B3
  938. goto :InstallKey
  939. :: Visio 2013 Standard
  940. :ac4efaf0-f81f-4f61-bdf7-ea32b02ab117
  941. set _key=J484Y-4NKBF-W2HMG-DBMJC-PGWR7
  942. goto :InstallKey
  943. :: Access 2013
  944. :6ee7622c-18d8-4005-9fb7-92db644a279b
  945. set _key=NG2JY-H4JBT-HQXYP-78QH9-4JM2D
  946. goto :InstallKey
  947. :: Excel 2013
  948. :f7461d52-7c2b-43b2-8744-ea958e0bd09a
  949. set _key=VGPNG-Y7HQW-9RHP7-TKPV3-BG7GB
  950. goto :InstallKey
  951. :: InfoPath 2013
  952. :a30b8040-d68a-423f-b0b5-9ce292ea5a8f
  953. set _key=DKT8B-N7VXH-D963P-Q4PHY-F8894
  954. goto :InstallKey
  955. :: Lync 2013
  956. :1b9f11e3-c85c-4e1b-bb29-879ad2c909e3
  957. set _key=2MG3G-3BNTT-3MFW9-KDQW3-TCK7R
  958. goto :InstallKey
  959. :: OneNote 2013
  960. :efe1f3e6-aea2-4144-a208-32aa872b6545
  961. set _key=TGN6P-8MMBC-37P2F-XHXXK-P34VW
  962. goto :InstallKey
  963. :: Outlook 2013
  964. :771c3afa-50c5-443f-b151-ff2546d863a0
  965. set _key=QPN8Q-BJBTJ-334K3-93TGY-2PMBT
  966. goto :InstallKey
  967. :: PowerPoint 2013
  968. :8c762649-97d1-4953-ad27-b7e2c25b972e
  969. set _key=4NT99-8RJFH-Q2VDH-KYG2C-4RD4F
  970. goto :InstallKey
  971. :: Publisher 2013
  972. :00c79ff1-6850-443d-bf61-71cde0de305f
  973. set _key=PN2WF-29XG2-T9HJ7-JQPJR-FCXK4
  974. goto :InstallKey
  975. :: Word 2013
  976. :d9f5b1c6-5386-495a-88f9-9ad6b41ac9b3
  977. set _key=6Q7VD-NX8JD-WJ2VH-88V73-4GBJ7
  978. goto :InstallKey
  979. :: SharePoint Designer 2013 Retail
  980. :ba3e3833-6a7e-445a-89d0-7802a9a68588
  981. set _key=GYJRG-NMYMF-VGBM4-T3QD4-842DW
  982. goto :InstallKey
  983. :: Mondo 2013
  984. :dc981c6b-fc8e-420f-aa43-f8f33e5c0923
  985. set _key=42QTK-RN8M7-J3C4G-BBGYM-88CYV
  986. goto :InstallKey
  987. ::============================================================================================================================================================
  988. :: Office 2010 Professional Plus
  989. :6f327760-8c5c-417c-9b61-836a98287e0c
  990. set _key=VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
  991. goto :InstallKey
  992. :: Office 2010 Standard
  993. :9da2a678-fb6b-4e67-ab84-60dd6a9c819a
  994. set _key=V7QKV-4XVVR-XYV4D-F7DFM-8R6BM
  995. goto :InstallKey
  996. :: Office 2010 Starter Retail
  997. :2745e581-565a-4670-ae90-6bf7c57ffe43
  998. set _key=VXHHB-W7HBD-7M342-RJ7P8-CHBD6
  999. goto :InstallKey
  1000. :: Access 2010
  1001. :8ce7e872-188c-4b98-9d90-f8f90b7aad02
  1002. set _key=V7Y44-9T38C-R2VJK-666HK-T7DDX
  1003. goto :InstallKey
  1004. :: Excel 2010
  1005. :cee5d470-6e3b-4fcc-8c2b-d17428568a9f
  1006. set _key=H62QG-HXVKF-PP4HP-66KMR-CW9BM
  1007. goto :InstallKey
  1008. :: SharePoint Workspace 2010 (Groove)
  1009. :8947d0b8-c33b-43e1-8c56-9b674c052832
  1010. set _key=QYYW6-QP4CB-MBV6G-HYMCJ-4T3J4
  1011. goto :InstallKey
  1012. :: SharePoint Designer 2010 Retail
  1013. :b78df69e-0966-40b1-ae85-30a5134dedd0
  1014. set _key=H48K6-FB4Y6-P83GH-9J7XG-HDKKX
  1015. goto :InstallKey
  1016. :: InfoPath 2010
  1017. :ca6b6639-4ad6-40ae-a575-14dee07f6430
  1018. set _key=K96W8-67RPQ-62T9Y-J8FQJ-BT37T
  1019. goto :InstallKey
  1020. :: OneNote 2010
  1021. :ab586f5c-5256-4632-962f-fefd8b49e6f4
  1022. set _key=Q4Y4M-RHWJM-PY37F-MTKWH-D3XHX
  1023. goto :InstallKey
  1024. :: Outlook 2010
  1025. :ecb7c192-73ab-4ded-acf4-2399b095d0cc
  1026. set _key=7YDC2-CWM8M-RRTJC-8MDVC-X3DWQ
  1027. goto :InstallKey
  1028. :: PowerPoint 2010
  1029. :45593b1d-dfb1-4e91-bbfb-2d5d0ce2227a
  1030. set _key=RC8FX-88JRY-3PF7C-X8P67-P4VTT
  1031. goto :InstallKey
  1032. :: Project 2010 Professional
  1033. :df133ff7-bf14-4f95-afe3-7b48e7e331ef
  1034. set _key=YGX6F-PGV49-PGW3J-9BTGG-VHKC6
  1035. goto :InstallKey
  1036. :: Project 2010 Standard
  1037. :5dc7bf61-5ec9-4996-9ccb-df806a2d0efe
  1038. set _key=4HP3K-88W3F-W2K3D-6677X-F9PGB
  1039. goto :InstallKey
  1040. :: Publisher 2010
  1041. :b50c4f75-599b-43e8-8dcd-1081a7967241
  1042. set _key=BFK7F-9MYHM-V68C7-DRQ66-83YTP
  1043. goto :InstallKey
  1044. :: Word 2010
  1045. :2d0882e7-a4e7-423b-8ccc-70d91e0158b1
  1046. set _key=HVHB3-C6FV7-KQX9W-YQG79-CRY7T
  1047. goto :InstallKey
  1048. :: Visio 2010 Premium
  1049. :92236105-bb67-494f-94c7-7f7a607929bd
  1050. set _key=D9DWC-HPYVV-JGF4P-BTWQB-WX8BJ
  1051. goto :InstallKey
  1052. :: Visio 2010 Professional
  1053. :e558389c-83c3-4b29-adfe-5e4d7f46c358
  1054. set _key=7MCW8-VRQVK-G677T-PDJCM-Q8TCP
  1055. goto :InstallKey
  1056. :: Visio 2010 Standard
  1057. :9ed833ff-4f92-4f36-b370-8683a4f13275
  1058. set _key=767HD-QGMWX-8QTDB-9G3R2-KHFGJ
  1059. goto :InstallKey
  1060. :: Office 2010 Home and Business
  1061. :ea509e87-07a1-4a45-9edc-eba5a39f36af
  1062. set _key=D6QFG-VBYP2-XQHM7-J97RH-VVRCK
  1063. goto :InstallKey
  1064. :: Office 2010 Mondo
  1065. :09ed9640-f020-400a-acd8-d7d867dfd9c2
  1066. set _key=YBJTT-JG6MD-V9Q7P-DBKXJ-38W9R
  1067. goto :InstallKey
  1068. :: Office 2010 Mondo
  1069. :ef3d4e49-a53d-4d81-a2b1-2ca6c2556b2c
  1070. set _key=7TC2V-WXF6P-TD7RT-BQRXR-B8K32
  1071. goto :InstallKey
  1072. ::============================================================================================================================================================
  1073. :: Windows 10 Home
  1074. :58e97c99-f377-4ef1-81d5-4ad5522b5fd8
  1075. set _key=TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
  1076. goto :InstallKey
  1077. :: Windows 10 Home N
  1078. :7b9e1751-a8da-4f75-9560-5fadfe3d8e38
  1079. set _key=3KHY7-WNT83-DGQKR-F7HPR-844BM
  1080. goto :InstallKey
  1081. :: Windows 10 Home Single Language
  1082. :cd918a57-a41b-4c82-8dce-1a538e221a83
  1083. set _key=7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
  1084. goto :InstallKey
  1085. :: Windows 10 Home Country Specific
  1086. :a9107544-f4a0-4053-a96a-1479abdef912
  1087. set _key=PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
  1088. goto :InstallKey
  1089. :: Windows 10 Professional
  1090. :2de67392-b7a7-462a-b1ca-108dd189f588
  1091. set _key=W269N-WFGWX-YVC9B-4J6C9-T83GX
  1092. goto :InstallKey
  1093. :: Windows 10 Professional N
  1094. :a80b5abf-76ad-428b-b05d-a47d2dffeebf
  1095. set _key=MH37W-N47XK-V7XM9-C7227-GCQG9
  1096. goto :InstallKey
  1097. :: Windows 10 Professional Education
  1098. :3f1afc82-f8ac-4f6c-8005-1d233e606eee
  1099. set _key=6TP4R-GNPTD-KYYHQ-7B7DP-J447Y
  1100. goto :InstallKey
  1101. :: Windows 10 Professional Education N
  1102. :5300b18c-2e33-4dc2-8291-47ffcec746dd
  1103. set _key=YVWGF-BXNMC-HTQYQ-CPQ99-66QFC
  1104. goto :InstallKey
  1105. :: Windows 10 Education
  1106. :e0c42288-980c-4788-a014-c080d2e1926e
  1107. set _key=NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
  1108. goto :InstallKey
  1109. :: Windows 10 Education N
  1110. :3c102355-d027-42c6-ad23-2e7ef8a02585
  1111. set _key=2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
  1112. goto :InstallKey
  1113. :: Windows 10 Enterprise
  1114. :73111121-5638-40f6-bc11-f1d7b0d64300
  1115. set _key=NPPR9-FWDCX-D2C8J-H872K-2YT43
  1116. goto :InstallKey
  1117. :: Windows 10 Enterprise N
  1118. :e272e3e2-732f-4c65-a8f0-484747d0d947
  1119. set _key=DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
  1120. goto :InstallKey
  1121. :: Windows 10 Enterprise 2015 LTSB
  1122. :7b51a46c-0c04-4e8f-9af4-8496cca90d5e
  1123. set _key=WNMTR-4C88C-JK8YV-HQ7T2-76DF9
  1124. goto :InstallKey
  1125. :: Windows 10 Enterprise 2015 LTSB N
  1126. :87b838b7-41b6-4590-8318-5797951d8529
  1127. set _key=2F77B-TNFGY-69QQF-B8YKP-D69TJ
  1128. goto :InstallKey
  1129. :: Windows 10 Enterprise 2016 LTSB
  1130. :2d5a5a60-3040-48bf-beb0-fcd770c20ce0
  1131. set _key=DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ
  1132. goto :InstallKey
  1133. :: Windows 10 Enterprise 2016 LTSB N
  1134. :9f776d83-7156-45b2-8a5c-359b9c9f22a3
  1135. set _key=QFFDN-GRT3P-VKWWX-X7T3R-8B639
  1136. goto :InstallKey
  1137. :: Windows Server 2016 Essentials
  1138. :2b5a1b0f-a5ab-4c54-ac2f-a6d94824a283
  1139. set _key=JCKRF-N37P4-C2D82-9YXRT-4M63B
  1140. goto :InstallKey
  1141. :: Windows Server 2016 Standard
  1142. :8c1c5410-9f39-4805-8c9d-63a07706358f
  1143. set _key=WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY
  1144. goto :InstallKey
  1145. :: Windows Server 2016 Datacenter
  1146. :21c56779-b449-4d20-adfc-eece0e1ad74b
  1147. set _key=CB7KF-BWN84-R7R2Y-793K2-8XDDG
  1148. goto :InstallKey
  1149. :: Windows Server 2016 Cloud Storage
  1150. :7b4433f4-b1e7-4788-895a-c45378d38253
  1151. set _key=QN4C6-GBJD2-FB422-GHWJK-GJG2R
  1152. goto :InstallKey
  1153. :: Windows Server 2016 Azure Core
  1154. :3dbf341b-5f6c-4fa7-b936-699dce9e263f
  1155. set _key=VP34G-4NPPG-79JTQ-864T4-R3MQX
  1156. goto :InstallKey
  1157. ::============================================================================================================================================================
  1158. :: Windows 8.1 Professional
  1159. :c06b6981-d7fd-4a35-b7b4-054742b7af67
  1160. set _key=GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
  1161. goto :InstallKey
  1162. :: Windows 8.1 Professional N
  1163. :7476d79f-8e48-49b4-ab63-4d0b813a16e4
  1164. set _key=HMCNV-VVBFX-7HMBH-CTY9B-B4FXY
  1165. goto :InstallKey
  1166. :: Windows 8.1 Enterprise
  1167. :81671aaf-79d1-4eb1-b004-8cbbe173afea
  1168. set _key=MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
  1169. goto :InstallKey
  1170. :: Windows 8.1 Enterprise N
  1171. :113e705c-fa49-48a4-beea-7dd879b46b14
  1172. set _key=TT4HM-HN7YT-62K67-RGRQJ-JFFXW
  1173. goto :InstallKey
  1174. :: Windows 8.1 Professional WMC
  1175. :096ce63d-4fac-48a9-82a9-61ae9e800e5f
  1176. set _key=789NJ-TQK6T-6XTH8-J39CJ-J8D3P
  1177. goto :InstallKey
  1178. :: Windows 8.1 Core
  1179. :fe1c3238-432a-43a1-8e25-97e7d1ef10f3
  1180. set _key=M9Q9P-WNJJT-6PXPY-DWX8H-6XWKK
  1181. goto :InstallKey
  1182. :: Windows 8.1 Core N
  1183. :78558a64-dc19-43fe-a0d0-8075b2a370a3
  1184. set _key=7B9N3-D94CG-YTVHR-QBPX3-RJP64
  1185. goto :InstallKey
  1186. :: Windows 8.1 Core ARM
  1187. :ffee456a-cd87-4390-8e07-16146c672fd0
  1188. set _key=XYTND-K6QKT-K2MRH-66RTM-43JKP
  1189. goto :InstallKey
  1190. :: Windows 8.1 Core Single Language
  1191. :c72c6a1d-f252-4e7e-bdd1-3fca342acb35
  1192. set _key=BB6NG-PQ82V-VRDPW-8XVD2-V8P66
  1193. goto :InstallKey
  1194. :: Windows 8.1 Core Country Specific
  1195. :db78b74f-ef1c-4892-abfe-1e66b8231df6
  1196. set _key=NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3
  1197. goto :InstallKey
  1198. :: Windows 8.1 Embedded Industry
  1199. :0ab82d54-47f4-4acb-818c-cc5bf0ecb649
  1200. set _key=NMMPB-38DD4-R2823-62W8D-VXKJB
  1201. goto :InstallKey
  1202. :: Windows 8.1 Embedded Industry Enterprise
  1203. :cd4e2d9f-5059-4a50-a92d-05d5bb1267c7
  1204. set _key=FNFKF-PWTVT-9RC8H-32HB2-JB34X
  1205. goto :InstallKey
  1206. :: Windows 8.1 Embedded Industry Automotive
  1207. :f7e88590-dfc7-4c78-bccb-6f3865b99d1a
  1208. set _key=VHXM3-NR6FT-RY6RT-CK882-KW2CJ
  1209. goto :InstallKey
  1210. :: Windows 8.1 Core Connected (with Bing)
  1211. :e9942b32-2e55-4197-b0bd-5ff58cba8860
  1212. set _key=3PY8R-QHNP9-W7XQD-G6DPH-3J2C9
  1213. goto :InstallKey
  1214. :: Windows 8.1 Core Connected N (with Bing)
  1215. :c6ddecd6-2354-4c19-909b-306a3058484e
  1216. set _key=Q6HTR-N24GM-PMJFP-69CD8-2GXKR
  1217. goto :InstallKey
  1218. :: Windows 8.1 Core Connected Single Language (with Bing)
  1219. :b8f5e3a3-ed33-4608-81e1-37d6c9dcfd9c
  1220. set _key=KF37N-VDV38-GRRTV-XH8X6-6F3BB
  1221. goto :InstallKey
  1222. :: Windows 8.1 Core Connected Country Specific (with Bing)
  1223. :ba998212-460a-44db-bfb5-71bf09d1c68b
  1224. set _key=R962J-37N87-9VVK2-WJ74P-XTMHR
  1225. goto :InstallKey
  1226. :: Windows 8.1 Professional Student
  1227. :e58d87b5-8126-4580-80fb-861b22f79296
  1228. set _key=MX3RK-9HNGX-K3QKC-6PJ3F-W8D7B
  1229. goto :InstallKey
  1230. :: Windows 8.1 Professional Student N
  1231. :cab491c7-a918-4f60-b502-dab75e334f40
  1232. set _key=TNFGH-2R6PB-8XM3K-QYHX2-J4296
  1233. goto :InstallKey
  1234. :: Windows Server 2012 R2 Standard
  1235. :b3ca044e-a358-4d68-9883-aaa2941aca99
  1236. set _key=D2N9P-3P6X9-2R39C-7RTCD-MDVJX
  1237. goto :InstallKey
  1238. :: Windows Server 2012 R2 Datacenter
  1239. :00091344-1ea4-4f37-b789-01750ba6988c
  1240. set _key=W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9
  1241. goto :InstallKey
  1242. :: Windows Server 2012 R2 Essentials
  1243. :21db6ba4-9a7b-4a14-9e29-64a60c59301d
  1244. set _key=KNC87-3J2TX-XB4WP-VCPJV-M4FWM
  1245. goto :InstallKey
  1246. :: Windows Server 2012 R2 Cloud Storage
  1247. :b743a2be-68d4-4dd3-af32-92425b7bb623
  1248. set _key=3NPTF-33KPT-GGBPR-YX76B-39KDD
  1249. goto :InstallKey
  1250. ::============================================================================================================================================================
  1251. :: Windows 8 Professional
  1252. :a98bcd6d-5343-4603-8afe-5908e4611112
  1253. set _key=NG4HW-VH26C-733KW-K6F98-J8CK4
  1254. goto :InstallKey
  1255. :: Windows 8 Professional N
  1256. :ebf245c1-29a8-4daf-9cb1-38dfc608a8c8
  1257. set _key=XCVCF-2NXM9-723PB-MHCB7-2RYQQ
  1258. goto :InstallKey
  1259. :: Windows 8 Enterprise
  1260. :458e1bec-837a-45f6-b9d5-925ed5d299de
  1261. set _key=32JNW-9KQ84-P47T8-D8GGY-CWCK7
  1262. goto :InstallKey
  1263. :: Windows 8 Enterprise N
  1264. :e14997e7-800a-4cf7-ad10-de4b45b578db
  1265. set _key=JMNMF-RHW7P-DMY6X-RF3DR-X2BQT
  1266. goto :InstallKey
  1267. :: Windows 8 Professional WMC
  1268. :a00018a3-f20f-4632-bf7c-8daa5351c914
  1269. set _key=GNBB8-YVD74-QJHX6-27H4K-8QHDG
  1270. goto :InstallKey
  1271. :: Windows 8 Core ARM
  1272. :af35d7b7-5035-4b63-8972-f0b747b9f4dc
  1273. set _key=DXHJF-N9KQX-MFPVR-GHGQK-Y7RKV
  1274. goto :InstallKey
  1275. :: Windows 8 Embedded Industry Professional
  1276. :10018baf-ce21-4060-80bd-47fe74ed4dab
  1277. set _key=RYXVT-BNQG7-VD29F-DBMRY-HT73M
  1278. goto :InstallKey
  1279. :: Windows 8 Embedded Industry Enterprise
  1280. :18db1848-12e0-4167-b9d7-da7fcda507db
  1281. set _key=NKB3R-R2F8T-3XCDP-7Q2KW-XWYQ2
  1282. goto :InstallKey
  1283. :: Windows Server 2012 / Windows 8 Core
  1284. :c04ed6bf-55c8-4b47-9f8e-5a1f31ceee60
  1285. set _key=BN3D2-R7TKB-3YPBD-8DRP2-27GG4
  1286. goto :InstallKey
  1287. :: Windows Server 2012 N / Windows 8 Core N
  1288. :197390a0-65f6-4a95-bdc4-55d58a3b0253
  1289. set _key=8N2M2-HWPGY-7PGT9-HGDD8-GVGGY
  1290. goto :InstallKey
  1291. :: Windows Server 2012 Single Language / Windows 8 Core Single Language
  1292. :8860fcd4-a77b-4a20-9045-a150ff11d609
  1293. set _key=2WN2H-YGCQR-KFX6K-CD6TF-84YXQ
  1294. goto :InstallKey
  1295. :: Windows Server 2012 Country Specific / Windows 8 Core Country Specific
  1296. :9d5584a2-2d85-419a-982c-a00888bb9ddf
  1297. set _key=4K36P-JN4VD-GDC6V-KDT89-DYFKP
  1298. goto :InstallKey
  1299. :: Windows Server 2012 Standard
  1300. :f0f5ec41-0d55-4732-af02-440a44a3cf0f
  1301. set _key=XC9B7-NBPP2-83J2H-RHMBY-92BT4
  1302. goto :InstallKey
  1303. :: Windows Server 2012 MultiPoint Standard
  1304. :7d5486c7-e120-4771-b7f1-7b56c6d3170c
  1305. set _key=HM7DN-YVMH3-46JC3-XYTG7-CYQJJ
  1306. goto :InstallKey
  1307. :: Windows Server 2012 MultiPoint Premium
  1308. :95fd1c83-7df5-494a-be8b-1300e1c9d1cd
  1309. set _key=XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G
  1310. goto :InstallKey
  1311. :: Windows Server 2012 Datacenter
  1312. :d3643d60-0c42-412d-a7d6-52e6635327f6
  1313. set _key=48HP8-DN98B-MYWDG-T2DCC-8W83P
  1314. goto :InstallKey
  1315. ::============================================================================================================================================================
  1316. :: Windows 7 Professional
  1317. :b92e9980-b9d5-4821-9c94-140f632f6312
  1318. set _key=FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
  1319. goto :InstallKey
  1320. :: Windows 7 Professional N
  1321. :54a09a0d-d57b-4c10-8b69-a842d6590ad5
  1322. set _key=MRPKT-YTG23-K7D7T-X2JMM-QY7MG
  1323. goto :InstallKey
  1324. :: Windows 7 Professional E
  1325. :5a041529-fef8-4d07-b06f-b59b573b32d2
  1326. set _key=W82YF-2Q76Y-63HXB-FGJG9-GF7QX
  1327. goto :InstallKey
  1328. :: Windows 7 Enterprise
  1329. :ae2ee509-1b34-41c0-acb7-6d4650168915
  1330. set _key=33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
  1331. goto :InstallKey
  1332. :: Windows 7 Enterprise N
  1333. :1cb6d605-11b3-4e14-bb30-da91c8e3983a
  1334. set _key=YDRBP-3D83W-TY26F-D46B2-XCKRJ
  1335. goto :InstallKey
  1336. :: Windows 7 Enterprise E
  1337. :46bbed08-9c7b-48fc-a614-95250573f4ea
  1338. set _key=C29WB-22CC8-VJ326-GHFJW-H9DH4
  1339. goto :InstallKey
  1340. :: Windows Server 2008 R2 Web
  1341. :a78b8bd9-8017-4df5-b86a-09f756affa7c
  1342. set _key=6TPJF-RBVHG-WBW2R-86QPH-6RTM4
  1343. goto :InstallKey
  1344. :: Windows Server 2008 R2 HPC edition
  1345. :cda18cf3-c196-46ad-b289-60c072869994
  1346. set _key=TT8MH-CG224-D3D7Q-498W2-9QCTX
  1347. goto :InstallKey
  1348. :: Windows Server 2008 R2 Standard
  1349. :68531fb9-5511-4989-97be-d11a0f55633f
  1350. set _key=YC6KT-GKW9T-YTKYR-T4X34-R7VHC
  1351. goto :InstallKey
  1352. :: Windows Server 2008 R2 Enterprise
  1353. :620e2b3d-09e7-42fd-802a-17a13652fe7a
  1354. set _key=489J6-VHDMP-X63PK-3K798-CPX3Y
  1355. goto :InstallKey
  1356. :: Windows Server 2008 R2 Datacenter
  1357. :7482e61b-c589-4b7f-8ecc-46d455ac3b87
  1358. set _key=74YFP-3QFB3-KQT8W-PMXWJ-7M648
  1359. goto :InstallKey
  1360. :: Windows Server 2008 R2 for Itanium-based Systems
  1361. :8a26851c-1c7e-48d3-a687-fbca9b9ac16b
  1362. set _key=GT63C-RJFQ3-4GMB6-BRFB9-CB83V
  1363. goto :InstallKey
  1364. :: Windows 7 Embedded POS Ready
  1365. :db537896-376f-48ae-a492-53d0547773d0
  1366. set _key=YBYF6-BHCR3-JPKRB-CDW7B-F9BK4
  1367. goto :InstallKey
  1368. :: Windows 7 Embedded ThinPC
  1369. :aa6dd3aa-c2b4-40e2-a544-a6bbb3f5c395
  1370. set _key=73KQT-CD9G6-K7TQG-66MRP-CQ22C
  1371. goto :InstallKey
  1372. :: Windows 7 Embedded Standard OEM
  1373. :e1a8296a-db37-44d1-8cce-7bc961d59c54
  1374. set _key=XGY72-BRBBT-FF8MH-2GG8H-W7KCW
  1375. goto :InstallKey
  1376. :: Windows MultiPoint Server 2010
  1377. :f772515c-0e87-48d5-a676-e6962c3e1195
  1378. set _key=736RG-XDKJK-V34PF-BHK87-J6X3K
  1379. goto :InstallKey
  1380. ::============================================================================================================================================================
  1381. :: Windows Vista Business
  1382. :4f3d1606-3fea-4c01-be3c-8d671c401e3b
  1383. set _key=YFKBB-PQJJV-G996G-VWGXY-2V3X8
  1384. goto :InstallKey
  1385. :: Windows Vista Business N
  1386. :2c682dc2-8b68-4f63-a165-ae291d4cf138
  1387. set _key=HMBQG-8H2RH-C77VX-27R82-VMQBT
  1388. goto :InstallKey
  1389. :: Windows Vista Enterprise
  1390. :cfd8ff08-c0d7-452b-9f60-ef5c70c32094
  1391. set _key=VKK3X-68KWM-X2YGT-QR4M6-4BWMV
  1392. goto :InstallKey
  1393. :: Windows Vista Enterprise N
  1394. :d4f54950-26f2-4fb4-ba21-ffab16afcade
  1395. set _key=VTC42-BM838-43QHV-84HX6-XJXKV
  1396. goto :InstallKey
  1397. :: Windows Server 2008 Web
  1398. :ddfa9f7c-f09e-40b9-8c1a-be877a9a7f4b
  1399. set _key=WYR28-R7TFJ-3X2YQ-YCY4H-M249D
  1400. goto :InstallKey
  1401. :: Windows Server 2008 Standard
  1402. :ad2542d4-9154-4c6d-8a44-30f11ee96989
  1403. set _key=TM24T-X9RMF-VWXK6-X8JC9-BFGM2
  1404. goto :InstallKey
  1405. :: Windows Server 2008 Standard without Hyper-V
  1406. :2401e3d0-c50a-4b58-87b2-7e794b7d2607
  1407. set _key=W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ
  1408. goto :InstallKey
  1409. :: Windows Server 2008 Enterprise
  1410. :c1af4d90-d1bc-44ca-85d4-003ba33db3b9
  1411. set _key=YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
  1412. goto :InstallKey
  1413. :: Windows Server 2008 Enterprise without Hyper-V
  1414. :8198490a-add0-47b2-b3ba-316b12d647b4
  1415. set _key=39BXF-X8Q23-P2WWT-38T2F-G3FPG
  1416. goto :InstallKey
  1417. :: Windows Server 2008 HPC (Compute Cluster)
  1418. :7afb1156-2c1d-40fc-b260-aab7442b62fe
  1419. set _key=RCTX3-KWVHP-BR6TB-RB6DM-6X7HP
  1420. goto :InstallKey
  1421. :: Windows Server 2008 Datacenter
  1422. :68b6e220-cf09-466b-92d3-45cd964b9509
  1423. set _key=7M67G-PC374-GR742-YH8V4-TCBY3
  1424. goto :InstallKey
  1425. :: Windows Server 2008 Datacenter without Hyper-V
  1426. :fd09ef77-5647-4eff-809c-af2b64659a45
  1427. set _key=22XQ2-VRXRG-P8D42-K34TD-G3QQC
  1428. goto :InstallKey
  1429. :: Windows Server 2008 for Itanium-Based Systems
  1430. :01ef176b-3e0d-422a-b4f8-4ea880035e8f
  1431. set _key=4DWFP-JF3DJ-B7DTH-78FJB-PDRHK
  1432. goto :InstallKey
  1433. ::============================================================================================================================================================
  1434. :KeyNotFound
  1435. :: If GVLK is not found for the current SKU-ID, attempt Activation as GVLK might be present in OS by default
  1436. echo.
  1437. echo GVLK for %_Name%
  1438. echo with SKU-ID %1 Not Found
  1439. echo.
  1440. echo If Activation Fails Now, Please enter GVLK for this Product manually and re-run KMS_VL_ALL
  1441. call :Activate %1
  1442. exit /b
  1443. ::============================================================================================================================================================
  1444. :InstallKey
  1445. :: Call InstallProductKey method of SLS/OSPS to install GVLK
  1446. echo Installing Key...
  1447. wmic path %_sps% where version='%_ver%' call InstallProductKey ProductKey="%_key%" >nul 2>&1
  1448. call :Activate %1
  1449. ::============================================================================================================================================================