文章目录
-
- 原理
- 简单识别程序源代码
- Windows & Office 产品GVLK
- AU3自动识别安装
- 新增
原理
REM 执行以下查询可以得到一个ID,根据对照表可以查到GVLK
wmic path SoftwareLicensingProduct where (Description like "%%KMSCLIENT%%") get ID /format:list
REM win7上的Office执行以下命令
wmic path OfficeSoftwareProtectionProduct where (Description like "%%KMSCLIENT%%") get ID /format:list
文章目录
-
- 原理
- 简单识别程序源代码
- Windows & Office 产品GVLK
- AU3自动识别安装
- 新增
简单识别程序源代码
#include <StringConstants.au3>
#NoTrayIcon
#include<array.au3>
Func GetWindowsOrOfficeGVLKFromID($inputID)
; 接受一个 KMS CLIENT ID, 返回 [GVLK, 系统版本描述]数组
; 没找到则返回 ["", ""]
Local Const $arrDesc[180] = [ _
"Office 2019 Professional Plus", _
"Office 2019 Standard", _
"Project 2019 Professional", _
"Project 2019 Standard", _
"Visio 2019 Professional", _
"Visio 2019 Standard", _
"Access 2019", _
"Excel 2019", _
"Outlook 2019", _
"PowerPoint 2019", _
"Publisher 2019", _
"Skype for Business 2019", _
"Word 2019", _
"Office 2019 Professional Plus C2R-P", _
"Project 2019 Professional C2R-P", _
"Visio 2019 Professional C2R-P", _
"Office 2016 Mondo", _
"Office 2016 Professional Plus", _
"Office 2016 Standard", _
"Project 2016 Professional", _
"Project 2016 Standard", _
"Visio 2016 Professional", _
"Visio 2016 Standard", _
"Access 2016", _
"Excel 2016", _
"OneNote 2016", _
"Outlook 2016", _
"PowerPoint 2016", _
"Publisher 2016", _
"Skype for Business 2016", _
"Word 2016", _
"Project 2016 Professional C2R-P", _
"Project 2016 Standard C2R-P", _
"Visio 2016 Professional C2R-P", _
"Visio 2016 Standard C2R-P", _
"Office 2016 MondoR Automation", _
"Office 2013 Mondo", _
"Office 2013 Professional Plus", _
"Office 2013 Standard", _
"Project 2013 Professional", _
"Project 2013 Standard", _
"Visio 2013 Professional", _
"Visio 2013 Standard", _
"Access 2013", _
"Excel 2013", _
"OneDrive for Business 2013 (Groove)", _
"InfoPath 2013", _
"Lync 2013", _
"OneNote 2013", _
"Outlook 2013", _
"PowerPoint 2013", _
"Publisher 2013", _
"Word 2013", _
"Office 2010 Professional Plus", _
"Office 2010 Standard", _
"Access 2010", _
"Excel 2010", _
"SharePoint Workspace 2010 (Groove)", _
"InfoPath 2010", _
"OneNote 2010", _
"Outlook 2010", _
"PowerPoint 2010", _
"Project 2010 Professional", _
"Project 2010 Standard", _
"Publisher 2010", _
"Word 2010", _
"Visio 2010 Premium", _
"Visio 2010 Professional", _
"Visio 2010 Standard", _
"Office 2010 Home and Business", _
"Office 2010 Mondo", _
"Office 2010 Mondo", _
"Windows 10 Home", _
"Windows 10 Home N", _
"Windows 10 Home Single Language", _
"Windows 10 Home Country Specific", _
"Windows 10 Professional", _
"Windows 10 Professional N", _
"Windows 10 Professional Education", _
"Windows 10 Professional Education N", _
"Windows 10 Professional Workstation", _
"Windows 10 Professional Workstation N", _
"Windows 10 Education", _
"Windows 10 Education N", _
"Windows 10 Enterprise", _
"Windows 10 Enterprise N", _
"Windows 10 Enterprise G", _
"Windows 10 Enterprise G N", _
"Windows 10 Enterprise 2015 LTSB", _
"Windows 10 Enterprise 2015 LTSB N", _
"Windows 10 Enterprise 2016 LTSB", _
"Windows 10 Enterprise 2016 LTSB N", _
"Windows 10 Enterprise LTSC 2018", _
"Windows 10 Enterprise LTSC 2018 N", _
"Windows 10 Enterprise Remote Server", _
"Windows 10 Enterprise for Remote Sessions", _
"Windows 10 Lean", _
"Windows Server 2019 Essentials", _
"Windows Server 2019 Standard", _
"Windows Server 2019 Datacenter", _
"Windows Server 2019 Standard ACor", _
"Windows Server 2019 Datacenter ACor", _
"Windows Server 2019 Azure Core", _
"Windows Server 2019 ARM64", _
"Windows Server 2016 Essentials", _
"Windows Server 2016 Standard", _
"Windows Server 2016 Datacenter", _
"Windows Server 2016 Standard ACor", _
"Windows Server 2016 Datacenter ACor", _
"Windows Server 2016 Cloud Storage", _
"Windows Server 2016 Azure Core", _
"Windows Server 2016 ARM64", _
"Windows 8.1 Professional", _
"Windows 8.1 Professional N", _
"Windows 8.1 Enterprise", _
"Windows 8.1 Enterprise N", _
"Windows 8.1 Professional WMC", _
"Windows 8.1 Core", _
"Windows 8.1 Core N", _
"Windows 8.1 Core ARM", _
"Windows 8.1 Core Single Language", _
"Windows 8.1 Core Country Specific", _
"Windows 8.1 Embedded Industry", _
"Windows 8.1 Embedded Industry Enterprise", _
"Windows 8.1 Embedded Industry Automotive", _
"Windows 8.1 Core Connected (with Bing)", _
"Windows 8.1 Core Connected N (with Bing)", _
"Windows 8.1 Core Connected Single Language (with Bing)", _
"Windows 8.1 Core Connected Country Specific (with Bing)", _
"Windows 8.1 Professional Student", _
"Windows 8.1 Professional Student N", _
"Windows Server 2012 R2 Standard", _
"Windows Server 2012 R2 Datacenter", _
"Windows Server 2012 R2 Essentials", _
"Windows Server 2012 R2 Cloud Storage", _
"Windows 8 Professional", _
"Windows 8 Professional N", _
"Windows 8 Enterprise", _
"Windows 8 Enterprise N", _
"Windows 8 Professional WMC", _
"Windows 8 Core", _
"Windows 8 Core N", _
"Windows 8 Core Single Language", _
"Windows 8 Core Country Specific", _
"Windows 8 Core ARM", _
"Windows 8 Embedded Industry Professional", _
"Windows 8 Embedded Industry Enterprise", _
"Windows Server 2012 Standard", _
"Windows Server 2012 Datacenter", _
"Windows Server 2012 MultiPoint Standard", _
"Windows Server 2012 MultiPoint Premium", _
"Windows 7 Professional", _
"Windows 7 Professional N", _
"Windows 7 Professional E", _
"Windows 7 Enterprise", _
"Windows 7 Enterprise N", _
"Windows 7 Enterprise E", _
"Windows 7 Embedded POS Ready", _
"Windows 7 Embedded ThinPC", _
"Windows 7 Embedded Standard", _
"Windows Server 2008 R2 Web", _
"Windows Server 2008 R2 HPC edition", _
"Windows Server 2008 R2 Standard", _
"Windows Server 2008 R2 Enterprise", _
"Windows Server 2008 R2 Datacenter", _
"Windows Server 2008 R2 for Itanium-based Systems", _
"Windows MultiPoint Server 2010", _
"Windows Vista Business", _
"Windows Vista Business N", _
"Windows Vista Enterprise", _
"Windows Vista Enterprise N", _
"Windows Server 2008 Web", _
"Windows Server 2008 Standard", _
"Windows Server 2008 Standard without Hyper-V", _
"Windows Server 2008 Enterprise", _
"Windows Server 2008 Enterprise without Hyper-V", _
"Windows Server 2008 HPC (Compute Cluster)", _
"Windows Server 2008 Datacenter", _
"Windows Server 2008 Datacenter without Hyper-V", _
"Windows Server 2008 for Itanium-Based Systems" _
]
Local Const $arrPID[180] = [ _
"85dd8b5f-eaa4-4af3-a628-cce9e77c9a03", _
"6912a74b-a5fb-401a-bfdb-2e3ab46f4b02", _
"2ca2bf3f-949e-446a-82c7-e25a15ec78c4", _
"1777f0e3-7392-4198-97ea-8ae4de6f6381", _
"5b5cf08f-b81a-431d-b080-3450d8620565", _
"e06d7df3-aad0-419d-8dfb-0ac37e2bdf39", _
"9e9bceeb-e736-4f26-88de-763f87dcc485", _
"237854e9-79fc-4497-a0c1-a70969691c6b", _
"c8f8a301-19f5-4132-96ce-2de9d4adbd33", _
"3131fd61-5e4f-4308-8d6d-62be1987c92c", _
"9d3e4cca-e172-46f1-a2f4-1d2107051444", _
"734c6c6e-b0ba-4298-a891-671772b2bd1b", _
"059834fe-a8ea-4bff-b67b-4d006b5447d3", _
"0bc88885-718c-491d-921f-6f214349e79c", _
"fc7c4d0c-2e85-4bb9-afd4-01ed1476b5e9", _
"500f6619-ef93-4b75-bcb4-82819998a3ca", _
"9caabccb-61b1-4b4b-8bec-d10a3c3ac2ce", _
"d450596f-894d-49e0-966a-fd39ed4c4c64", _
"dedfa23d-6ed1-45a6-85dc-63cae0546de6", _
"4f414197-0fc2-4c01-b68a-86cbb9ac254c", _
"da7ddabc-3fbe-4447-9e01-6ab7440b4cd4", _
"6bf301c1-b94a-43e9-ba31-d494598c47fb", _
"aa2a7821-1827-4c2c-8f1d-4513a34dda97", _
"67c0fc0c-deba-401b-bf8b-9c8ad8395804", _
"c3e65d36-141f-4d2f-a303-a842ee756a29", _
"d8cace59-33d2-4ac7-9b1b-9b72339c51c8", _
"ec9d9265-9d1e-4ed0-838a-cdc20f2551a1", _
"d70b1bba-b893-4544-96e2-b7a318091c33", _
"041a06cb-c5b8-4772-809f-416d03d16654", _
"83e04ee1-fa8d-436d-8994-d31a862cab77", _
"bb11badf-d8aa-470e-9311-20eaf80fe5cc", _
"829b8110-0e6f-4349-bca4-42803577788d", _
"cbbaca45-556a-4416-ad03-bda598eaa7c8", _
"b234abe3-0857-4f9c-b05a-4dc314f85557", _
"361fe620-64f4-41b5-ba77-84f8e079b1f7", _
"e914ea6e-a5fa-4439-a394-a9bb3293ca09", _
"dc981c6b-fc8e-420f-aa43-f8f33e5c0923", _
"b322da9c-a2e2-4058-9e4e-f59a6970bd69", _
"b13afb38-cd79-4ae5-9f7f-eed058d750ca", _
"4a5d124a-e620-44ba-b6ff-658961b33b9a", _
"427a28d1-d17c-4abf-b717-32c780ba6f07", _
"e13ac10e-75d0-4aff-a0cd-764982cf541c", _
"ac4efaf0-f81f-4f61-bdf7-ea32b02ab117", _
"6ee7622c-18d8-4005-9fb7-92db644a279b", _
"f7461d52-7c2b-43b2-8744-ea958e0bd09a", _
"fb4875ec-0c6b-450f-b82b-ab57d8d1677f", _
"a30b8040-d68a-423f-b0b5-9ce292ea5a8f", _
"1b9f11e3-c85c-4e1b-bb29-879ad2c909e3", _
"efe1f3e6-aea2-4144-a208-32aa872b6545", _
"771c3afa-50c5-443f-b151-ff2546d863a0", _
"8c762649-97d1-4953-ad27-b7e2c25b972e", _
"00c79ff1-6850-443d-bf61-71cde0de305f", _
"d9f5b1c6-5386-495a-88f9-9ad6b41ac9b3", _
"6f327760-8c5c-417c-9b61-836a98287e0c", _
"9da2a678-fb6b-4e67-ab84-60dd6a9c819a", _
"8ce7e872-188c-4b98-9d90-f8f90b7aad02", _
"cee5d470-6e3b-4fcc-8c2b-d17428568a9f", _
"8947d0b8-c33b-43e1-8c56-9b674c052832", _
"ca6b6639-4ad6-40ae-a575-14dee07f6430", _
"ab586f5c-5256-4632-962f-fefd8b49e6f4", _
"ecb7c192-73ab-4ded-acf4-2399b095d0cc", _
"45593b1d-dfb1-4e91-bbfb-2d5d0ce2227a", _
"df133ff7-bf14-4f95-afe3-7b48e7e331ef", _
"5dc7bf61-5ec9-4996-9ccb-df806a2d0efe", _
"b50c4f75-599b-43e8-8dcd-1081a7967241", _
"2d0882e7-a4e7-423b-8ccc-70d91e0158b1", _
"92236105-bb67-494f-94c7-7f7a607929bd", _
"e558389c-83c3-4b29-adfe-5e4d7f46c358", _
"9ed833ff-4f92-4f36-b370-8683a4f13275", _
"ea509e87-07a1-4a45-9edc-eba5a39f36af", _
"09ed9640-f020-400a-acd8-d7d867dfd9c2", _
"ef3d4e49-a53d-4d81-a2b1-2ca6c2556b2c", _
"58e97c99-f377-4ef1-81d5-4ad5522b5fd8", _
"7b9e1751-a8da-4f75-9560-5fadfe3d8e38", _
"cd918a57-a41b-4c82-8dce-1a538e221a83", _
"a9107544-f4a0-4053-a96a-1479abdef912", _
"2de67392-b7a7-462a-b1ca-108dd189f588", _
"a80b5abf-76ad-428b-b05d-a47d2dffeebf", _
"3f1afc82-f8ac-4f6c-8005-1d233e606eee", _
"5300b18c-2e33-4dc2-8291-47ffcec746dd", _
"82bbc092-bc50-4e16-8e18-b74fc486aec3", _
"4b1571d3-bafb-4b40-8087-a961be2caf65", _
"e0c42288-980c-4788-a014-c080d2e1926e", _
"3c102355-d027-42c6-ad23-2e7ef8a02585", _
"73111121-5638-40f6-bc11-f1d7b0d64300", _
"e272e3e2-732f-4c65-a8f0-484747d0d947", _
"e0b2d383-d112-413f-8a80-97f373a5820c", _
"e38454fb-41a4-4f59-a5dc-25080e354730", _
"7b51a46c-0c04-4e8f-9af4-8496cca90d5e", _
"87b838b7-41b6-4590-8318-5797951d8529", _
"2d5a5a60-3040-48bf-beb0-fcd770c20ce0", _
"9f776d83-7156-45b2-8a5c-359b9c9f22a3", _
"32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee", _
"7103a333-b8c8-49cc-93ce-d37c09687f92", _
"e4db50ea-bda1-4566-b047-0ca50abc6f07", _
"ec868e65-fadf-4759-b23e-93fe37f2cc29", _
"0df4f814-3f57-4b8b-9a9d-fddadcd69fac", _
"034d3cbb-5d4b-4245-b3f8-f84571314078", _
"de32eafd-aaee-4662-9444-c1befb41bde2", _
"34e1ae55-27f8-4950-8877-7a03be5fb181", _
"73e3957c-fc0c-400d-9184-5f7b6f2eb409", _
"90c362e5-0da1-4bfd-b53b-b87d309ade43", _
"a99cc1f0-7719-4306-9645-294102fbff95", _
"8de8eb62-bbe0-40ac-ac17-f75595071ea3", _
"2b5a1b0f-a5ab-4c54-ac2f-a6d94824a283", _
"8c1c5410-9f39-4805-8c9d-63a07706358f", _
"21c56779-b449-4d20-adfc-eece0e1ad74b", _
"61c5ef22-f14f-4553-a824-c4b31e84b100", _
"e49c08e7-da82-42f8-bde2-b570fbcae76c", _
"7b4433f4-b1e7-4788-895a-c45378d38253", _
"3dbf341b-5f6c-4fa7-b936-699dce9e263f", _
"43d9af6e-5e86-4be8-a797-d072a046896c", _
"c06b6981-d7fd-4a35-b7b4-054742b7af67", _
"7476d79f-8e48-49b4-ab63-4d0b813a16e4", _
"81671aaf-79d1-4eb1-b004-8cbbe173afea", _
"113e705c-fa49-48a4-beea-7dd879b46b14", _
"096ce63d-4fac-48a9-82a9-61ae9e800e5f", _
"fe1c3238-432a-43a1-8e25-97e7d1ef10f3", _
"78558a64-dc19-43fe-a0d0-8075b2a370a3", _
"ffee456a-cd87-4390-8e07-16146c672fd0", _
"c72c6a1d-f252-4e7e-bdd1-3fca342acb35", _
"db78b74f-ef1c-4892-abfe-1e66b8231df6", _
"0ab82d54-47f4-4acb-818c-cc5bf0ecb649", _
"cd4e2d9f-5059-4a50-a92d-05d5bb1267c7", _
"f7e88590-dfc7-4c78-bccb-6f3865b99d1a", _
"e9942b32-2e55-4197-b0bd-5ff58cba8860", _
"c6ddecd6-2354-4c19-909b-306a3058484e", _
"b8f5e3a3-ed33-4608-81e1-37d6c9dcfd9c", _
"ba998212-460a-44db-bfb5-71bf09d1c68b", _
"e58d87b5-8126-4580-80fb-861b22f79296", _
"cab491c7-a918-4f60-b502-dab75e334f40", _
"b3ca044e-a358-4d68-9883-aaa2941aca99", _
"00091344-1ea4-4f37-b789-01750ba6988c", _
"21db6ba4-9a7b-4a14-9e29-64a60c59301d", _
"b743a2be-68d4-4dd3-af32-92425b7bb623", _
"a98bcd6d-5343-4603-8afe-5908e4611112", _
"ebf245c1-29a8-4daf-9cb1-38dfc608a8c8", _
"458e1bec-837a-45f6-b9d5-925ed5d299de", _
"e14997e7-800a-4cf7-ad10-de4b45b578db", _
"a00018a3-f20f-4632-bf7c-8daa5351c914", _
"c04ed6bf-55c8-4b47-9f8e-5a1f31ceee60", _
"197390a0-65f6-4a95-bdc4-55d58a3b0253", _
"8860fcd4-a77b-4a20-9045-a150ff11d609", _
"9d5584a2-2d85-419a-982c-a00888bb9ddf", _
"af35d7b7-5035-4b63-8972-f0b747b9f4dc", _
"10018baf-ce21-4060-80bd-47fe74ed4dab", _
"18db1848-12e0-4167-b9d7-da7fcda507db", _
"f0f5ec41-0d55-4732-af02-440a44a3cf0f", _
"d3643d60-0c42-412d-a7d6-52e6635327f6", _
"7d5486c7-e120-4771-b7f1-7b56c6d3170c", _
"95fd1c83-7df5-494a-be8b-1300e1c9d1cd", _
"b92e9980-b9d5-4821-9c94-140f632f6312", _
"54a09a0d-d57b-4c10-8b69-a842d6590ad5", _
"5a041529-fef8-4d07-b06f-b59b573b32d2", _
"ae2ee509-1b34-41c0-acb7-6d4650168915", _
"1cb6d605-11b3-4e14-bb30-da91c8e3983a", _
"46bbed08-9c7b-48fc-a614-95250573f4ea", _
"db537896-376f-48ae-a492-53d0547773d0", _
"aa6dd3aa-c2b4-40e2-a544-a6bbb3f5c395", _
"e1a8296a-db37-44d1-8cce-7bc961d59c54", _
"a78b8bd9-8017-4df5-b86a-09f756affa7c", _
"cda18cf3-c196-46ad-b289-60c072869994", _
"68531fb9-5511-4989-97be-d11a0f55633f", _
"620e2b3d-09e7-42fd-802a-17a13652fe7a", _
"7482e61b-c589-4b7f-8ecc-46d455ac3b87", _
"8a26851c-1c7e-48d3-a687-fbca9b9ac16b", _
"f772515c-0e87-48d5-a676-e6962c3e1195", _
"4f3d1606-3fea-4c01-be3c-8d671c401e3b", _
"2c682dc2-8b68-4f63-a165-ae291d4cf138", _
"cfd8ff08-c0d7-452b-9f60-ef5c70c32094", _
"d4f54950-26f2-4fb4-ba21-ffab16afcade", _
"ddfa9f7c-f09e-40b9-8c1a-be877a9a7f4b", _
"ad2542d4-9154-4c6d-8a44-30f11ee96989", _
"2401e3d0-c50a-4b58-87b2-7e794b7d2607", _
"c1af4d90-d1bc-44ca-85d4-003ba33db3b9", _
"8198490a-add0-47b2-b3ba-316b12d647b4", _
"7afb1156-2c1d-40fc-b260-aab7442b62fe", _
"68b6e220-cf09-466b-92d3-45cd964b9509", _
"fd09ef77-5647-4eff-809c-af2b64659a45", _
"01ef176b-3e0d-422a-b4f8-4ea880035e8f" _
]
Local Const $arrGVLK[180] = [ _
"NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP", _
"6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK", _
"B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B", _
"C4F7P-NCP8C-6CQPT-MQHV9-JXD2M", _
"9BGNQ-K37YR-RQHF2-38RQ3-7VCBB", _
"7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2", _
"9N9PT-27V4Y-VJ2PD-YXFMF-YTFQT", _
"TMJWT-YYNMB-3BKTF-644FC-RVXBD", _
"7HD7K-N4PVK-BHBCQ-YWQRW-XW4VK", _
"RRNCX-C64HY-W2MM7-MCH9G-TJHMQ", _
"G2KWX-3NW6P-PY93R-JXK2T-C9Y9V", _
"NCJ33-JHBBY-HTK98-MYCV8-HMKHJ", _
"PBX3G-NWMT6-Q7XBW-PYJGG-WXD33", _
"VQ9DP-NVH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X", _
"MH37W-N47XK-V7XM9-C7227-GCQG9", _
"6TP4R-GNPTD-KYYHQ-7B7DP-J447Y", _
"YVWGF-BXNMC-HTQYQ-CPQ99-66QFC", _
"NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J", _
"9FNHH-K3HBT-3W4TD-6383H-6XYWF", _
"NW6C2-QMPVW-D7KKK-3GKT6-VCFB2", _
"2WH4N-8QGBV-H22JP-CT43Q-MDWWJ", _
"NPPR9-FWDCX-D2C8J-H872K-2YT43", _
"DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4", _
"YYVX9-NTFWV-6MDM3-9PT4T-4M68B", _
"44RPN-FTY23-9VTTB-MP9BX-T84FV", _
"WNMTR-4C88C-JK8YV-HQ7T2-76DF9", _
"2F77B-TNFGY-69QQF-B8YKP-D69TJ", _
"DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ", _
"QFFDN-GRT3P-VKWWX-X7T3R-8B639", _
"M7XTQ-FN8P6-TTKYV-9D4CC-J462D", _
"92NFX-8DJQP-P6BBQ-THF9C-7CG2H", _
"7NBT4-WGBQX-MP4H7-QXFF8-YP3KX", _
"CPWHC-NT2C7-VYW78-DHDB2-PG3GK", _
"NBTWJ-3DR69-3C4V8-C26MC-GQ9M6", _
"WVDHN-86M7X-466P6-VHXV7-YY726", _
"N69G4-B89J2-4G8F4-WWYCC-J464C", _
"WMDGN-G9PQG-XVVXX-R3X43-63DFG", _
"N2KJX-J94YW-TQVFB-DG9YT-724CC", _
"6NMRW-2C8FM-D24W7-TQWMY-CWH2D", _
"FDNH6-VW9RW-BXPJ7-4XTYG-239TB", _
"GRFBW-QNDC4-6QBHG-CCK3B-2PR88", _
"JCKRF-N37P4-C2D82-9YXRT-4M63B", _
"WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY", _
"CB7KF-BWN84-R7R2Y-793K2-8XDDG", _
"PTXN8-JFHJM-4WC78-MPCBR-9W4KR", _
"2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG", _
"QN4C6-GBJD2-FB422-GHWJK-GJG2R", _
"VP34G-4NPPG-79JTQ-864T4-R3MQX", _
"K9FYF-G6NCK-73M32-XMVPY-F9DRR", _
"GCRJD-8NW9H-F2CDX-CCM8D-9D6T9", _
"HMCNV-VVBFX-7HMBH-CTY9B-B4FXY", _
"MHF9N-XY6XB-WVXMC-BTDCT-MKKG7", _
"TT4HM-HN7YT-62K67-RGRQJ-JFFXW", _
"789NJ-TQK6T-6XTH8-J39CJ-J8D3P", _
"M9Q9P-WNJJT-6PXPY-DWX8H-6XWKK", _
"7B9N3-D94CG-YTVHR-QBPX3-RJP64", _
"XYTND-K6QKT-K2MRH-66RTM-43JKP", _
"BB6NG-PQ82V-VRDPW-8XVD2-V8P66", _
"NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3", _
"NMMPB-38DD4-R2823-62W8D-VXKJB", _
"FNFKF-PWTVT-9RC8H-32HB2-JB34X", _
"VHXM3-NR6FT-RY6RT-CK882-KW2CJ", _
"3PY8R-QHNP9-W7XQD-G6DPH-3J2C9", _
"Q6HTR-N24GM-PMJFP-69CD8-2GXKR", _
"KF37N-VDV38-GRRTV-XH8X6-6F3BB", _
"R962J-37N87-9VVK2-WJ74P-XTMHR", _
"MX3RK-9HNGX-K3QKC-6PJ3F-W8D7B", _
"TNFGH-2R6PB-8XM3K-QYHX2-J4296", _
"D2N9P-3P6X9-2R39C-7RTCD-MDVJX", _
"W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9", _
"KNC87-3J2TX-XB4WP-VCPJV-M4FWM", _
"3NPTF-33KPT-GGBPR-YX76B-39KDD", _
"NG4HW-VH26C-733KW-K6F98-J8CK4", _
"XCVCF-2NXM9-723PB-MHCB7-2RYQQ", _
"32JNW-9KQ84-P47T8-D8GGY-CWCK7", _
"JMNMF-RHW7P-DMY6X-RF3DR-X2BQT", _
"GNBB8-YVD74-QJHX6-27H4K-8QHDG", _
"BN3D2-R7TKB-3YPBD-8DRP2-27GG4", _
"8N2M2-HWPGY-7PGT9-HGDD8-GVGGY", _
"2WN2H-YGCQR-KFX6K-CD6TF-84YXQ", _
"4K36P-JN4VD-GDC6V-KDT89-DYFKP", _
"DXHJF-N9KQX-MFPVR-GHGQK-Y7RKV", _
"RYXVT-BNQG7-VD29F-DBMRY-HT73M", _
"NKB3R-R2F8T-3XCDP-7Q2KW-XWYQ2", _
"XC9B7-NBPP2-83J2H-RHMBY-92BT4", _
"48HP8-DN98B-MYWDG-T2DCC-8W83P", _
"HM7DN-YVMH3-46JC3-XYTG7-CYQJJ", _
"XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G", _
"FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4", _
"MRPKT-YTG23-K7D7T-X2JMM-QY7MG", _
"W82YF-2Q76Y-63HXB-FGJG9-GF7QX", _
"33PXH-7Y6KF-2VJC9-XBBR8-HVTHH", _
"YDRBP-3D83W-TY26F-D46B2-XCKRJ", _
"C29WB-22CC8-VJ326-GHFJW-H9DH4", _
"YBYF6-BHCR3-JPKRB-CDW7B-F9BK4", _
"73KQT-CD9G6-K7TQG-66MRP-CQ22C", _
"XGY72-BRBBT-FF8MH-2GG8H-W7KCW", _
"6TPJF-RBVHG-WBW2R-86QPH-6RTM4", _
"TT8MH-CG224-D3D7Q-498W2-9QCTX", _
"YC6KT-GKW9T-YTKYR-T4X34-R7VHC", _
"489J6-VHDMP-X63PK-3K798-CPX3Y", _
"74YFP-3QFB3-KQT8W-PMXWJ-7M648", _
"GT63C-RJFQ3-4GMB6-BRFB9-CB83V", _
"736RG-XDKJK-V34PF-BHK87-J6X3K", _
"YFKBB-PQJJV-G996G-VWGXY-2V3X8", _
"HMBQG-8H2RH-C77VX-27R82-VMQBT", _
"VKK3X-68KWM-X2YGT-QR4M6-4BWMV", _
"VTC42-BM838-43QHV-84HX6-XJXKV", _
"WYR28-R7TFJ-3X2YQ-YCY4H-M249D", _
"TM24T-X9RMF-VWXK6-X8JC9-BFGM2", _
"W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ", _
"YQGMW-MPWTJ-34KDK-48M3W-X4Q6V", _
"39BXF-X8Q23-P2WWT-38T2F-G3FPG", _
"RCTX3-KWVHP-BR6TB-RB6DM-6X7HP", _
"7M67G-PC374-GR742-YH8V4-TCBY3", _
"22XQ2-VRXRG-P8D42-K34TD-G3QQC", _
"4DWFP-JF3DJ-B7DTH-78FJB-PDRHK" _
]
Local $ret[2] = ["", ""]
For $i = 0 To UBound($arrPID) - 1
If $arrPID[$i] == $inputID Then
$ret[0] = $arrGVLK[$i]
$ret[1] = $arrDesc[$i]
EndIf
Next
Return $ret
EndFunc
Func GetCurrentWindowsAndOfficeGVLK()
; Return 二维数组
; [[GVLK1, DESCRIPTION1], [GVLK2, DESCRIPTION2], ....]
; 如果没有匹配到任何结果,返回 []
Local $retList = ObjCreate("System.Collections.ArrayList")
RUNWAIT(@COMSPEC & " /c wmic path SoftwareLicensingProduct where (Description like " & "'%%KMSCLIENT%%'" & ") get ID /format:list > " & @TempDir & "\WindowsID.log", "", @SW_HIDE)
RunWait(@COMSPEC & " /c wmic path OfficeSoftwareProtectionProduct where (Description like " & "'%%KMSCLIENT%%'" & ") get ID /format:list >> " & @TempDir & "\WindowsID.log", "", @SW_HIDE)
Local $aArray = FileReadToArray(@TempDir & "\WindowsID.log")
Local $iLineCount = @extended
If @error Then
Return $retList.ToArray()
Else
For $i = 0 To $iLineCount - 1
If StringInStr($aArray[$i], "ID=") <> 0 Then
$matches = StringRegExp($aArray[$i], "\w{8}-\w{4}-\w{4}-\w{4}-\w{12}", $STR_REGEXPARRAYMATCH)
If UBound($matches) == 1 Then
$retList.Add(GetWindowsOrOfficeGVLKFromID($matches[0]))
EndIf
EndIf
Next
EndIf
Return $retList.ToArray()
EndFunc
$arrarrGVLKDesc = GetCurrentWindowsAndOfficeGVLK()
$s = ""
For $i = 0 To UBound($arrarrGVLKDesc) - 1
Local $arrGVLKDesc = $arrarrGVLKDesc[$i]
$s = $s & $arrGVLKDesc[1] & @CRLF & $arrGVLKDesc[0] & @CRLF & @CRLF
Next
MsgBox(0, "GVLK", $s)
文章目录
-
- 原理
- 简单识别程序源代码
- Windows & Office 产品GVLK
- AU3自动识别安装
- 新增
Windows & Office 产品GVLK
Windows产品名称 |
KMS Client ID |
GVLK |
Office 2019 Professional Plus |
85dd8b5f-eaa4-4af3-a628-cce9e77c9a03 |
NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP |
Office 2019 Standard |
6912a74b-a5fb-401a-bfdb-2e3ab46f4b02 |
6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK |
Project 2019 Professional |
2ca2bf3f-949e-446a-82c7-e25a15ec78c4 |
B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B |
Project 2019 Standard |
1777f0e3-7392-4198-97ea-8ae4de6f6381 |
C4F7P-NCP8C-6CQPT-MQHV9-JXD2M |
Visio 2019 Professional |
5b5cf08f-b81a-431d-b080-3450d8620565 |
9BGNQ-K37YR-RQHF2-38RQ3-7VCBB |
Visio 2019 Standard |
e06d7df3-aad0-419d-8dfb-0ac37e2bdf39 |
7TQNQ-K3YQQ-3PFH7-CCPPM-X4VQ2 |
Access 2019 |
9e9bceeb-e736-4f26-88de-763f87dcc485 |
9N9PT-27V4Y-VJ2PD-YXFMF-YTFQT |
Excel 2019 |
237854e9-79fc-4497-a0c1-a70969691c6b |
TMJWT-YYNMB-3BKTF-644FC-RVXBD |
Outlook 2019 |
c8f8a301-19f5-4132-96ce-2de9d4adbd33 |
7HD7K-N4PVK-BHBCQ-YWQRW-XW4VK |
PowerPoint 2019 |
3131fd61-5e4f-4308-8d6d-62be1987c92c |
RRNCX-C64HY-W2MM7-MCH9G-TJHMQ |
Publisher 2019 |
9d3e4cca-e172-46f1-a2f4-1d2107051444 |
G2KWX-3NW6P-PY93R-JXK2T-C9Y9V |
Skype for Business 2019 |
734c6c6e-b0ba-4298-a891-671772b2bd1b |
NCJ33-JHBBY-HTK98-MYCV8-HMKHJ |
Word 2019 |
059834fe-a8ea-4bff-b67b-4d006b5447d3 |
PBX3G-NWMT6-Q7XBW-PYJGG-WXD33 |
Office 2019 Professional Plus C2R-P |
0bc88885-718c-491d-921f-6f214349e79c |
VQ9DP-NVHPH-T9HJC-J9PDT-KTQRG |
Project 2019 Professional C2R-P |
fc7c4d0c-2e85-4bb9-afd4-01ed1476b5e9 |
XM2V9-DN9HH-QB449-XDGKC-W2RMW |
Visio 2019 Professional C2R-P |
500f6619-ef93-4b75-bcb4-82819998a3ca |
N2CG9-YD3YK-936X4-3WR82-Q3X4H |
Office 2016 Mondo |
9caabccb-61b1-4b4b-8bec-d10a3c3ac2ce |
HFTND-W9MK4-8B7MJ-B6C4G-XQBR2 |
Office 2016 Professional Plus |
d450596f-894d-49e0-966a-fd39ed4c4c64 |
XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99 |
Office 2016 Standard |
dedfa23d-6ed1-45a6-85dc-63cae0546de6 |
JNRGM-WHDWX-FJJG3-K47QV-DRTFM |
Project 2016 Professional |
4f414197-0fc2-4c01-b68a-86cbb9ac254c |
YG9NW-3K39V-2T3HJ-93F3Q-G83KT |
Project 2016 Standard |
da7ddabc-3fbe-4447-9e01-6ab7440b4cd4 |
GNFHQ-F6YQM-KQDGJ-327XX-KQBVC |
Visio 2016 Professional |
6bf301c1-b94a-43e9-ba31-d494598c47fb |
PD3PC-RHNGV-FXJ29-8JK7D-RJRJK |
Visio 2016 Standard |
aa2a7821-1827-4c2c-8f1d-4513a34dda97 |
7WHWN-4T7MP-G96JF-G33KR-W8GF4 |
Access 2016 |
67c0fc0c-deba-401b-bf8b-9c8ad8395804 |
GNH9Y-D2J4T-FJHGG-QRVH7-QPFDW |
Excel 2016 |
c3e65d36-141f-4d2f-a303-a842ee756a29 |
9C2PK-NWTVB-JMPW8-BFT28-7FTBF |
OneNote 2016 |
d8cace59-33d2-4ac7-9b1b-9b72339c51c8 |
DR92N-9HTF2-97XKM-XW2WJ-XW3J6 |
Outlook 2016 |
ec9d9265-9d1e-4ed0-838a-cdc20f2551a1 |
R69KK-NTPKF-7M3Q4-QYBHW-6MT9B |
PowerPoint 2016 |
d70b1bba-b893-4544-96e2-b7a318091c33 |
J7MQP-HNJ4Y-WJ7YM-PFYGF-BY6C6 |
Publisher 2016 |
041a06cb-c5b8-4772-809f-416d03d16654 |
F47MM-N3XJP-TQXJ9-BP99D-8K837 |
Skype for Business 2016 |
83e04ee1-fa8d-436d-8994-d31a862cab77 |
869NQ-FJ69K-466HW-QYCP2-DDBV6 |
Word 2016 |
bb11badf-d8aa-470e-9311-20eaf80fe5cc |
WXY84-JN2Q9-RBCCQ-3Q3J3-3PFJ6 |
Project 2016 Professional C2R-P |
829b8110-0e6f-4349-bca4-42803577788d |
WGT24-HCNMF-FQ7XH-6M8K7-DRTW9 |
Project 2016 Standard C2R-P |
cbbaca45-556a-4416-ad03-bda598eaa7c8 |
D8NRQ-JTYM3-7J2DX-646CT-6836M |
Visio 2016 Professional C2R-P |
b234abe3-0857-4f9c-b05a-4dc314f85557 |
69WXN-MBYV6-22PQG-3WGHK-RM6XC |
Visio 2016 Standard C2R-P |
361fe620-64f4-41b5-ba77-84f8e079b1f7 |
NY48V-PPYYH-3F4PX-XJRKJ-W4423 |
Office 2016 MondoR Automation |
e914ea6e-a5fa-4439-a394-a9bb3293ca09 |
DMTCJ-KNRKX-26982-JYCKT-P7KB6 |
Office 2013 Mondo |
dc981c6b-fc8e-420f-aa43-f8f33e5c0923 |
42QTK-RN8M7-J3C4G-BBGYM-88CYV |
Office 2013 Professional Plus |
b322da9c-a2e2-4058-9e4e-f59a6970bd69 |
YC7DK-G2NP3-2QQC3-J6H88-GVGXT |
Office 2013 Standard |
b13afb38-cd79-4ae5-9f7f-eed058d750ca |
KBKQT-2NMXY-JJWGP-M62JB-92CD4 |
Project 2013 Professional |
4a5d124a-e620-44ba-b6ff-658961b33b9a |
FN8TT-7WMH6-2D4X9-M337T-2342K |
Project 2013 Standard |
427a28d1-d17c-4abf-b717-32c780ba6f07 |
6NTH3-CW976-3G3Y2-JK3TX-8QHTT |
Visio 2013 Professional |
e13ac10e-75d0-4aff-a0cd-764982cf541c |
C2FG9-N6J68-H8BTJ-BW3QX-RM3B3 |
Visio 2013 Standard |
ac4efaf0-f81f-4f61-bdf7-ea32b02ab117 |
J484Y-4NKBF-W2HMG-DBMJC-PGWR7 |
Access 2013 |
6ee7622c-18d8-4005-9fb7-92db644a279b |
NG2JY-H4JBT-HQXYP-78QH9-4JM2D |
Excel 2013 |
f7461d52-7c2b-43b2-8744-ea958e0bd09a |
VGPNG-Y7HQW-9RHP7-TKPV3-BG7GB |
OneDrive for Business 2013 (Groove) |
fb4875ec-0c6b-450f-b82b-ab57d8d1677f |
H7R7V-WPNXQ-WCYYC-76BGV-VT7GH |
InfoPath 2013 |
a30b8040-d68a-423f-b0b5-9ce292ea5a8f |
DKT8B-N7VXH-D963P-Q4PHY-F8894 |
Lync 2013 |
1b9f11e3-c85c-4e1b-bb29-879ad2c909e3 |
2MG3G-3BNTT-3MFW9-KDQW3-TCK7R |
OneNote 2013 |
efe1f3e6-aea2-4144-a208-32aa872b6545 |
TGN6P-8MMBC-37P2F-XHXXK-P34VW |
Outlook 2013 |
771c3afa-50c5-443f-b151-ff2546d863a0 |
QPN8Q-BJBTJ-334K3-93TGY-2PMBT |
PowerPoint 2013 |
8c762649-97d1-4953-ad27-b7e2c25b972e |
4NT99-8RJFH-Q2VDH-KYG2C-4RD4F |
Publisher 2013 |
00c79ff1-6850-443d-bf61-71cde0de305f |
PN2WF-29XG2-T9HJ7-JQPJR-FCXK4 |
Word 2013 |
d9f5b1c6-5386-495a-88f9-9ad6b41ac9b3 |
6Q7VD-NX8JD-WJ2VH-88V73-4GBJ7 |
Office 2010 Professional Plus |
6f327760-8c5c-417c-9b61-836a98287e0c |
VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB |
Office 2010 Standard |
9da2a678-fb6b-4e67-ab84-60dd6a9c819a |
V7QKV-4XVVR-XYV4D-F7DFM-8R6BM |
Access 2010 |
8ce7e872-188c-4b98-9d90-f8f90b7aad02 |
V7Y44-9T38C-R2VJK-666HK-T7DDX |
Excel 2010 |
cee5d470-6e3b-4fcc-8c2b-d17428568a9f |
H62QG-HXVKF-PP4HP-66KMR-CW9BM |
SharePoint Workspace 2010 (Groove) |
8947d0b8-c33b-43e1-8c56-9b674c052832 |
QYYW6-QP4CB-MBV6G-HYMCJ-4T3J4 |
InfoPath 2010 |
ca6b6639-4ad6-40ae-a575-14dee07f6430 |
K96W8-67RPQ-62T9Y-J8FQJ-BT37T |
OneNote 2010 |
ab586f5c-5256-4632-962f-fefd8b49e6f4 |
Q4Y4M-RHWJM-PY37F-MTKWH-D3XHX |
Outlook 2010 |
ecb7c192-73ab-4ded-acf4-2399b095d0cc |
7YDC2-CWM8M-RRTJC-8MDVC-X3DWQ |
PowerPoint 2010 |
45593b1d-dfb1-4e91-bbfb-2d5d0ce2227a |
RC8FX-88JRY-3PF7C-X8P67-P4VTT |
Project 2010 Professional |
df133ff7-bf14-4f95-afe3-7b48e7e331ef |
YGX6F-PGV49-PGW3J-9BTGG-VHKC6 |
Project 2010 Standard |
5dc7bf61-5ec9-4996-9ccb-df806a2d0efe |
4HP3K-88W3F-W2K3D-6677X-F9PGB |
Publisher 2010 |
b50c4f75-599b-43e8-8dcd-1081a7967241 |
BFK7F-9MYHM-V68C7-DRQ66-83YTP |
Word 2010 |
2d0882e7-a4e7-423b-8ccc-70d91e0158b1 |
HVHB3-C6FV7-KQX9W-YQG79-CRY7T |
Visio 2010 Premium |
92236105-bb67-494f-94c7-7f7a607929bd |
D9DWC-HPYVV-JGF4P-BTWQB-WX8BJ |
Visio 2010 Professional |
e558389c-83c3-4b29-adfe-5e4d7f46c358 |
7MCW8-VRQVK-G677T-PDJCM-Q8TCP |
Visio 2010 Standard |
9ed833ff-4f92-4f36-b370-8683a4f13275 |
767HD-QGMWX-8QTDB-9G3R2-KHFGJ |
Office 2010 Home and Business |
ea509e87-07a1-4a45-9edc-eba5a39f36af |
D6QFG-VBYP2-XQHM7-J97RH-VVRCK |
Office 2010 Mondo |
09ed9640-f020-400a-acd8-d7d867dfd9c2 |
YBJTT-JG6MD-V9Q7P-DBKXJ-38W9R |
Office 2010 Mondo |
ef3d4e49-a53d-4d81-a2b1-2ca6c2556b2c |
7TC2V-WXF6P-TD7RT-BQRXR-B8K32 |
Windows 10 Home |
58e97c99-f377-4ef1-81d5-4ad5522b5fd8 |
TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 |
Windows 10 Home N |
7b9e1751-a8da-4f75-9560-5fadfe3d8e38 |
3KHY7-WNT83-DGQKR-F7HPR-844BM |
Windows 10 Home Single Language |
cd918a57-a41b-4c82-8dce-1a538e221a83 |
7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH |
Windows 10 Home Country Specific |
a9107544-f4a0-4053-a96a-1479abdef912 |
PVMJN-6DFY6-9CCP6-7BKTT-D3WVR |
Windows 10 Professional |
2de67392-b7a7-462a-b1ca-108dd189f588 |
W269N-WFGWX-YVC9B-4J6C9-T83GX |
Windows 10 Professional N |
a80b5abf-76ad-428b-b05d-a47d2dffeebf |
MH37W-N47XK-V7XM9-C7227-GCQG9 |
Windows 10 Professional Education |
3f1afc82-f8ac-4f6c-8005-1d233e606eee |
6TP4R-GNPTD-KYYHQ-7B7DP-J447Y |
Windows 10 Professional Education N |
5300b18c-2e33-4dc2-8291-47ffcec746dd |
YVWGF-BXNMC-HTQYQ-CPQ99-66QFC |
Windows 10 Professional Workstation |
82bbc092-bc50-4e16-8e18-b74fc486aec3 |
NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J |
Windows 10 Professional Workstation N |
4b1571d3-bafb-4b40-8087-a961be2caf65 |
9FNHH-K3HBT-3W4TD-6383H-6XYWF |
Windows 10 Education |
e0c42288-980c-4788-a014-c080d2e1926e |
NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 |
Windows 10 Education N |
3c102355-d027-42c6-ad23-2e7ef8a02585 |
2WH4N-8QGBV-H22JP-CT43Q-MDWWJ |
Windows 10 Enterprise |
73111121-5638-40f6-bc11-f1d7b0d64300 |
NPPR9-FWDCX-D2C8J-H872K-2YT43 |
Windows 10 Enterprise N |
e272e3e2-732f-4c65-a8f0-484747d0d947 |
DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 |
Windows 10 Enterprise G |
e0b2d383-d112-413f-8a80-97f373a5820c |
YYVX9-NTFWV-6MDM3-9PT4T-4M68B |
Windows 10 Enterprise G N |
e38454fb-41a4-4f59-a5dc-25080e354730 |
44RPN-FTY23-9VTTB-MP9BX-T84FV |
Windows 10 Enterprise 2015 LTSB |
7b51a46c-0c04-4e8f-9af4-8496cca90d5e |
WNMTR-4C88C-JK8YV-HQ7T2-76DF9 |
Windows 10 Enterprise 2015 LTSB N |
87b838b7-41b6-4590-8318-5797951d8529 |
2F77B-TNFGY-69QQF-B8YKP-D69TJ |
Windows 10 Enterprise 2016 LTSB |
2d5a5a60-3040-48bf-beb0-fcd770c20ce0 |
DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ |
Windows 10 Enterprise 2016 LTSB N |
9f776d83-7156-45b2-8a5c-359b9c9f22a3 |
QFFDN-GRT3P-VKWWX-X7T3R-8B639 |
Windows 10 Enterprise LTSC 2018 |
32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee |
M7XTQ-FN8P6-TTKYV-9D4CC-J462D |
Windows 10 Enterprise LTSC 2018 N |
7103a333-b8c8-49cc-93ce-d37c09687f92 |
92NFX-8DJQP-P6BBQ-THF9C-7CG2H |
Windows 10 Enterprise Remote Server |
e4db50ea-bda1-4566-b047-0ca50abc6f07 |
7NBT4-WGBQX-MP4H7-QXFF8-YP3KX |
Windows 10 Enterprise for Remote Sessions |
ec868e65-fadf-4759-b23e-93fe37f2cc29 |
CPWHC-NT2C7-VYW78-DHDB2-PG3GK |
Windows 10 Lean |
0df4f814-3f57-4b8b-9a9d-fddadcd69fac |
NBTWJ-3DR69-3C4V8-C26MC-GQ9M6 |
Windows Server 2019 Essentials |
034d3cbb-5d4b-4245-b3f8-f84571314078 |
WVDHN-86M7X-466P6-VHXV7-YY726 |
Windows Server 2019 Standard |
de32eafd-aaee-4662-9444-c1befb41bde2 |
N69G4-B89J2-4G8F4-WWYCC-J464C |
Windows Server 2019 Datacenter |
34e1ae55-27f8-4950-8877-7a03be5fb181 |
WMDGN-G9PQG-XVVXX-R3X43-63DFG |
Windows Server 2019 Standard ACor |
73e3957c-fc0c-400d-9184-5f7b6f2eb409 |
N2KJX-J94YW-TQVFB-DG9YT-724CC |
Windows Server 2019 Datacenter ACor |
90c362e5-0da1-4bfd-b53b-b87d309ade43 |
6NMRW-2C8FM-D24W7-TQWMY-CWH2D |
Windows Server 2019 Azure Core |
a99cc1f0-7719-4306-9645-294102fbff95 |
FDNH6-VW9RW-BXPJ7-4XTYG-239TB |
Windows Server 2019 ARM64 |
8de8eb62-bbe0-40ac-ac17-f75595071ea3 |
GRFBW-QNDC4-6QBHG-CCK3B-2PR88 |
Windows Server 2016 Essentials |
2b5a1b0f-a5ab-4c54-ac2f-a6d94824a283 |
JCKRF-N37P4-C2D82-9YXRT-4M63B |
Windows Server 2016 Standard |
8c1c5410-9f39-4805-8c9d-63a07706358f |
WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY |
Windows Server 2016 Datacenter |
21c56779-b449-4d20-adfc-eece0e1ad74b |
CB7KF-BWN84-R7R2Y-793K2-8XDDG |
Windows Server 2016 Standard ACor |
61c5ef22-f14f-4553-a824-c4b31e84b100 |
PTXN8-JFHJM-4WC78-MPCBR-9W4KR |
Windows Server 2016 Datacenter ACor |
e49c08e7-da82-42f8-bde2-b570fbcae76c |
2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG |
Windows Server 2016 Cloud Storage |
7b4433f4-b1e7-4788-895a-c45378d38253 |
QN4C6-GBJD2-FB422-GHWJK-GJG2R |
Windows Server 2016 Azure Core |
3dbf341b-5f6c-4fa7-b936-699dce9e263f |
VP34G-4NPPG-79JTQ-864T4-R3MQX |
Windows Server 2016 ARM64 |
43d9af6e-5e86-4be8-a797-d072a046896c |
K9FYF-G6NCK-73M32-XMVPY-F9DRR |
Windows 8.1 Professional |
c06b6981-d7fd-4a35-b7b4-054742b7af67 |
GCRJD-8NW9H-F2CDX-CCM8D-9D6T9 |
Windows 8.1 Professional N |
7476d79f-8e48-49b4-ab63-4d0b813a16e4 |
HMCNV-VVBFX-7HMBH-CTY9B-B4FXY |
Windows 8.1 Enterprise |
81671aaf-79d1-4eb1-b004-8cbbe173afea |
MHF9N-XY6XB-WVXMC-BTDCT-MKKG7 |
Windows 8.1 Enterprise N |
113e705c-fa49-48a4-beea-7dd879b46b14 |
TT4HM-HN7YT-62K67-RGRQJ-JFFXW |
Windows 8.1 Professional WMC |
096ce63d-4fac-48a9-82a9-61ae9e800e5f |
789NJ-TQK6T-6XTH8-J39CJ-J8D3P |
Windows 8.1 Core |
fe1c3238-432a-43a1-8e25-97e7d1ef10f3 |
M9Q9P-WNJJT-6PXPY-DWX8H-6XWKK |
Windows 8.1 Core N |
78558a64-dc19-43fe-a0d0-8075b2a370a3 |
7B9N3-D94CG-YTVHR-QBPX3-RJP64 |
Windows 8.1 Core ARM |
ffee456a-cd87-4390-8e07-16146c672fd0 |
XYTND-K6QKT-K2MRH-66RTM-43JKP |
Windows 8.1 Core Single Language |
c72c6a1d-f252-4e7e-bdd1-3fca342acb35 |
BB6NG-PQ82V-VRDPW-8XVD2-V8P66 |
Windows 8.1 Core Country Specific |
db78b74f-ef1c-4892-abfe-1e66b8231df6 |
NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3 |
Windows 8.1 Embedded Industry |
0ab82d54-47f4-4acb-818c-cc5bf0ecb649 |
NMMPB-38DD4-R2823-62W8D-VXKJB |
Windows 8.1 Embedded Industry Enterprise |
cd4e2d9f-5059-4a50-a92d-05d5bb1267c7 |
FNFKF-PWTVT-9RC8H-32HB2-JB34X |
Windows 8.1 Embedded Industry Automotive |
f7e88590-dfc7-4c78-bccb-6f3865b99d1a |
VHXM3-NR6FT-RY6RT-CK882-KW2CJ |
Windows 8.1 Core Connected (with Bing) |
e9942b32-2e55-4197-b0bd-5ff58cba8860 |
3PY8R-QHNP9-W7XQD-G6DPH-3J2C9 |
Windows 8.1 Core Connected N (with Bing) |
c6ddecd6-2354-4c19-909b-306a3058484e |
Q6HTR-N24GM-PMJFP-69CD8-2GXKR |
Windows 8.1 Core Connected Single Language (with Bing) |
b8f5e3a3-ed33-4608-81e1-37d6c9dcfd9c |
KF37N-VDV38-GRRTV-XH8X6-6F3BB |
Windows 8.1 Core Connected Country Specific (with Bing) |
ba998212-460a-44db-bfb5-71bf09d1c68b |
R962J-37N87-9VVK2-WJ74P-XTMHR |
Windows 8.1 Professional Student |
e58d87b5-8126-4580-80fb-861b22f79296 |
MX3RK-9HNGX-K3QKC-6PJ3F-W8D7B |
Windows 8.1 Professional Student N |
cab491c7-a918-4f60-b502-dab75e334f40 |
TNFGH-2R6PB-8XM3K-QYHX2-J4296 |
Windows Server 2012 R2 Standard |
b3ca044e-a358-4d68-9883-aaa2941aca99 |
D2N9P-3P6X9-2R39C-7RTCD-MDVJX |
Windows Server 2012 R2 Datacenter |
00091344-1ea4-4f37-b789-01750ba6988c |
W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9 |
Windows Server 2012 R2 Essentials |
21db6ba4-9a7b-4a14-9e29-64a60c59301d |
KNC87-3J2TX-XB4WP-VCPJV-M4FWM |
Windows Server 2012 R2 Cloud Storage |
b743a2be-68d4-4dd3-af32-92425b7bb623 |
3NPTF-33KPT-GGBPR-YX76B-39KDD |
Windows 8 Professional |
a98bcd6d-5343-4603-8afe-5908e4611112 |
NG4HW-VH26C-733KW-K6F98-J8CK4 |
Windows 8 Professional N |
ebf245c1-29a8-4daf-9cb1-38dfc608a8c8 |
XCVCF-2NXM9-723PB-MHCB7-2RYQQ |
Windows 8 Enterprise |
458e1bec-837a-45f6-b9d5-925ed5d299de |
32JNW-9KQ84-P47T8-D8GGY-CWCK7 |
Windows 8 Enterprise N |
e14997e7-800a-4cf7-ad10-de4b45b578db |
JMNMF-RHW7P-DMY6X-RF3DR-X2BQT |
Windows 8 Professional WMC |
a00018a3-f20f-4632-bf7c-8daa5351c914 |
GNBB8-YVD74-QJHX6-27H4K-8QHDG |
Windows 8 Core |
c04ed6bf-55c8-4b47-9f8e-5a1f31ceee60 |
BN3D2-R7TKB-3YPBD-8DRP2-27GG4 |
Windows 8 Core N |
197390a0-65f6-4a95-bdc4-55d58a3b0253 |
8N2M2-HWPGY-7PGT9-HGDD8-GVGGY |
Windows 8 Core Single Language |
8860fcd4-a77b-4a20-9045-a150ff11d609 |
2WN2H-YGCQR-KFX6K-CD6TF-84YXQ |
Windows 8 Core Country Specific |
9d5584a2-2d85-419a-982c-a00888bb9ddf |
4K36P-JN4VD-GDC6V-KDT89-DYFKP |
Windows 8 Core ARM |
af35d7b7-5035-4b63-8972-f0b747b9f4dc |
DXHJF-N9KQX-MFPVR-GHGQK-Y7RKV |
Windows 8 Embedded Industry Professional |
10018baf-ce21-4060-80bd-47fe74ed4dab |
RYXVT-BNQG7-VD29F-DBMRY-HT73M |
Windows 8 Embedded Industry Enterprise |
18db1848-12e0-4167-b9d7-da7fcda507db |
NKB3R-R2F8T-3XCDP-7Q2KW-XWYQ2 |
Windows Server 2012 Standard |
f0f5ec41-0d55-4732-af02-440a44a3cf0f |
XC9B7-NBPP2-83J2H-RHMBY-92BT4 |
Windows Server 2012 Datacenter |
d3643d60-0c42-412d-a7d6-52e6635327f6 |
48HP8-DN98B-MYWDG-T2DCC-8W83P |
Windows Server 2012 MultiPoint Standard |
7d5486c7-e120-4771-b7f1-7b56c6d3170c |
HM7DN-YVMH3-46JC3-XYTG7-CYQJJ |
Windows Server 2012 MultiPoint Premium |
95fd1c83-7df5-494a-be8b-1300e1c9d1cd |
XNH6W-2V9GX-RGJ4K-Y8X6F-QGJ2G |
Windows 7 Professional |
b92e9980-b9d5-4821-9c94-140f632f6312 |
FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 |
Windows 7 Professional N |
54a09a0d-d57b-4c10-8b69-a842d6590ad5 |
MRPKT-YTG23-K7D7T-X2JMM-QY7MG |
Windows 7 Professional E |
5a041529-fef8-4d07-b06f-b59b573b32d2 |
W82YF-2Q76Y-63HXB-FGJG9-GF7QX |
Windows 7 Enterprise |
ae2ee509-1b34-41c0-acb7-6d4650168915 |
33PXH-7Y6KF-2VJC9-XBBR8-HVTHH |
Windows 7 Enterprise N |
1cb6d605-11b3-4e14-bb30-da91c8e3983a |
YDRBP-3D83W-TY26F-D46B2-XCKRJ |
Windows 7 Enterprise E |
46bbed08-9c7b-48fc-a614-95250573f4ea |
C29WB-22CC8-VJ326-GHFJW-H9DH4 |
Windows 7 Embedded POS Ready |
db537896-376f-48ae-a492-53d0547773d0 |
YBYF6-BHCR3-JPKRB-CDW7B-F9BK4 |
Windows 7 Embedded ThinPC |
aa6dd3aa-c2b4-40e2-a544-a6bbb3f5c395 |
73KQT-CD9G6-K7TQG-66MRP-CQ22C |
Windows 7 Embedded Standard |
e1a8296a-db37-44d1-8cce-7bc961d59c54 |
XGY72-BRBBT-FF8MH-2GG8H-W7KCW |
Windows Server 2008 R2 Web |
a78b8bd9-8017-4df5-b86a-09f756affa7c |
6TPJF-RBVHG-WBW2R-86QPH-6RTM4 |
Windows Server 2008 R2 HPC edition |
cda18cf3-c196-46ad-b289-60c072869994 |
TT8MH-CG224-D3D7Q-498W2-9QCTX |
Windows Server 2008 R2 Standard |
68531fb9-5511-4989-97be-d11a0f55633f |
YC6KT-GKW9T-YTKYR-T4X34-R7VHC |
Windows Server 2008 R2 Enterprise |
620e2b3d-09e7-42fd-802a-17a13652fe7a |
489J6-VHDMP-X63PK-3K798-CPX3Y |
Windows Server 2008 R2 Datacenter |
7482e61b-c589-4b7f-8ecc-46d455ac3b87 |
74YFP-3QFB3-KQT8W-PMXWJ-7M648 |
Windows Server 2008 R2 for Itanium-based Systems |
8a26851c-1c7e-48d3-a687-fbca9b9ac16b |
GT63C-RJFQ3-4GMB6-BRFB9-CB83V |
Windows MultiPoint Server 2010 |
f772515c-0e87-48d5-a676-e6962c3e1195 |
736RG-XDKJK-V34PF-BHK87-J6X3K |
Windows Vista Business |
4f3d1606-3fea-4c01-be3c-8d671c401e3b |
YFKBB-PQJJV-G996G-VWGXY-2V3X8 |
Windows Vista Business N |
2c682dc2-8b68-4f63-a165-ae291d4cf138 |
HMBQG-8H2RH-C77VX-27R82-VMQBT |
Windows Vista Enterprise |
cfd8ff08-c0d7-452b-9f60-ef5c70c32094 |
VKK3X-68KWM-X2YGT-QR4M6-4BWMV |
Windows Vista Enterprise N |
d4f54950-26f2-4fb4-ba21-ffab16afcade |
VTC42-BM838-43QHV-84HX6-XJXKV |
Windows Server 2008 Web |
ddfa9f7c-f09e-40b9-8c1a-be877a9a7f4b |
WYR28-R7TFJ-3X2YQ-YCY4H-M249D |
Windows Server 2008 Standard |
ad2542d4-9154-4c6d-8a44-30f11ee96989 |
TM24T-X9RMF-VWXK6-X8JC9-BFGM2 |
Windows Server 2008 Standard without Hyper-V |
2401e3d0-c50a-4b58-87b2-7e794b7d2607 |
W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ |
Windows Server 2008 Enterprise |
c1af4d90-d1bc-44ca-85d4-003ba33db3b9 |
YQGMW-MPWTJ-34KDK-48M3W-X4Q6V |
Windows Server 2008 Enterprise without Hyper-V |
8198490a-add0-47b2-b3ba-316b12d647b4 |
39BXF-X8Q23-P2WWT-38T2F-G3FPG |
Windows Server 2008 HPC (Compute Cluster) |
7afb1156-2c1d-40fc-b260-aab7442b62fe |
RCTX3-KWVHP-BR6TB-RB6DM-6X7HP |
Windows Server 2008 Datacenter |
68b6e220-cf09-466b-92d3-45cd964b9509 |
7M67G-PC374-GR742-YH8V4-TCBY3 |
Windows Server 2008 Datacenter without Hyper-V |
fd09ef77-5647-4eff-809c-af2b64659a45 |
22XQ2-VRXRG-P8D42-K34TD-G3QQC |
Windows Server 2008 for Itanium-Based Systems |
01ef176b-3e0d-422a-b4f8-4ea880035e8f |
4DWFP-JF3DJ-B7DTH-78FJB-PDRHK |
文章目录
-
- 原理
- 简单识别程序源代码
- Windows & Office 产品GVLK
- AU3自动识别安装
- 新增
AU3自动识别安装
#include <StringConstants.au3>
#NoTrayIcon
FUNC _CHECKOFFICEDIRECTION($OFFICENUM)
; 该函数反编译heu_kms
; $OFFICENUM为 14.0, 15.0, 16.0
; 返回 office目录
; 如果没有找到,返回空
SELECT
CASE @OSARCH = "X86"
$OFFICEINSTDIRECTORY = REGREAD("HKLM\SOFTWARE\Microsoft\Office\"& $OFFICENUM & "\Common\FilesPaths", "office.odf")
CASE @OSARCH = "X64"
$OFFICEINSTDIRECTORY = REGREAD("HKLM64\SOFTWARE\Microsoft\Office\"& $OFFICENUM & "\Common\FilesPaths", "office.odf")
IF $OFFICEINSTDIRECTORY = ""THEN
$OFFICEINSTDIRECTORY = REGREAD("HKLM64\SOFTWARE\Wow6432Node\Microsoft\Office\"& $OFFICENUM & "\Common\FilesPaths", "office.odf")
IF $OFFICEINSTDIRECTORY = ""THEN
$OFFICEINSTDIRECTORY = REGREAD("HKLM\SOFTWARE\Microsoft\Office\"& $OFFICENUM & "\Common\FilesPaths", "office.odf")
IF $OFFICEINSTDIRECTORY = ""THEN
$OFFICEINSTDIRECTORY = REGREAD("HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\"& $OFFICENUM & "\Common\FilesPaths", "office.odf")
ENDIF
ENDIF
ENDIF
ENDSELECT
$OFFICEINSTDIRECTORY = STRINGLEFT($OFFICEINSTDIRECTORY, STRINGINSTR($OFFICEINSTDIRECTORY, "root") + 0xFFFFFFFF)
IF NOT FILEEXISTS($OFFICEINSTDIRECTORY & "\Office16\ospp.vbs") THEN
$OFFICEINSTDIRECTORY = ""
ELSE
$OFFICEINSTDIRECTORY = $OFFICEINSTDIRECTORY & "Office16\"
ENDIF
IF $OFFICEINSTDIRECTORY = ""THEN
SELECT
CASE @OSARCH = "X86"
$OFFICEINSTDIRECTORY = REGREAD("HKLM\SOFTWARE\Microsoft\Office\"& $OFFICENUM & "\Common\InstallRoot", "Path")
CASE @OSARCH = "X64"
$OFFICEINSTDIRECTORY = REGREAD("HKLM64\SOFTWARE\Microsoft\Office\"& $OFFICENUM & "\Common\InstallRoot", "Path")
IF $OFFICEINSTDIRECTORY = ""THEN
$OFFICEINSTDIRECTORY = REGREAD("HKLM64\SOFTWARE\Wow6432Node\Microsoft\Office\"& $OFFICENUM & "\Common\InstallRoot", "Path")
IF $OFFICEINSTDIRECTORY = ""THEN
$OFFICEINSTDIRECTORY = REGREAD("HKLM\SOFTWARE\Microsoft\Office\"& $OFFICENUM & "\Common\InstallRoot", "Path")
IF $OFFICEINSTDIRECTORY = ""THEN
$OFFICEINSTDIRECTORY = REGREAD("HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\"& $OFFICENUM & "\Common\InstallRoot", "Path")
ENDIF
ENDIF
ENDIF
ENDSELECT
IF NOT FILEEXISTS($OFFICEINSTDIRECTORY & "\ospp.vbs") THEN
$OFFICEINSTDIRECTORY = ""
ENDIF
ENDIF
RETURN $OFFICEINSTDIRECTORY
ENDFUNC
Func GetWindowsOrOfficeGVLKFromID($inputID)
; 接受一个 KMS CLIENT ID, 返回 [GVLK, 系统版本描述]数组
; 没找到则返回 ["", ""]
Local Const $arrDesc[180] = [ _
"Office 2019 Professional Plus", _
"Office 2019 Standard", _
"Project 2019 Professional", _
"Project 2019 Standard", _
"Visio 2019 Professional", _
"Visio 2019 Standard", _
"Access 2019", _
"Excel 2019", _
"Outlook 2019", _
"PowerPoint 2019", _
"Publisher 2019", _
"Skype for Business 2019", _
"Word 2019", _
"Office 2019 Professional Plus C2R-P", _
"Project 2019 Professional C2R-P", _
"Visio 2019 Professional C2R-P", _
"Office 2016 Mondo", _
"Office 2016 Professional Plus", _
"Office 2016 Standard", _
"Project 2016 Professional", _
"Project 2016 Standard", _
"Visio 2016 Professional", _
"Visio 2016 Standard", _
"Access 2016", _
"Excel 2016", _
"OneNote 2016", _
"Outlook 2016", _
"PowerPoint 2016", _
"Publisher 2016", _
"Skype for Business 2016", _
"Word 2016", _
"Project 2016 Professional C2R-P", _
"Project 2016 Standard C2R-P", _
"Visio 2016 Professional C2R-P", _
"Visio 2016 Standard C2R-P", _
"Office 2016 MondoR Automation", _
"Office 2013 Mondo", _
"Office 2013 Professional Plus", _
"Office 2013 Standard", _
"Project 2013 Professional", _
"Project 2013 Standard", _
"Visio 2013 Professional", _
"Visio 2013 Standard", _
"Access 2013", _
"Excel 2013", _
"OneDrive for Business 2013 (Groove)", _
"InfoPath 2013", _
"Lync 2013", _
"OneNote 2013", _
"Outlook 2013", _
"PowerPoint 2013", _
"Publisher 2013", _
"Word 2013", _
"Office 2010 Professional Plus", _
"Office 2010 Standard", _
"Access 2010", _
"Excel 2010", _
"SharePoint Workspace 2010 (Groove)", _
"InfoPath 2010", _
"OneNote 2010", _
"Outlook 2010", _
"PowerPoint 2010", _
"Project 2010 Professional", _
"Project 2010 Standard", _
"Publisher 2010", _
"Word 2010", _
"Visio 2010 Premium", _
"Visio 2010 Professional", _
"Visio 2010 Standard", _
"Office 2010 Home and Business", _
"Office 2010 Mondo", _
"Office 2010 Mondo", _
"Windows 10 Home", _
"Windows 10 Home N", _
"Windows 10 Home Single Language", _
"Windows 10 Home Country Specific", _
"Windows 10 Professional", _
"Windows 10 Professional N", _
"Windows 10 Professional Education", _
"Windows 10 Professional Education N", _
"Windows 10 Professional Workstation", _
"Windows 10 Professional Workstation N", _
"Windows 10 Education", _
"Windows 10 Education N", _
"Windows 10 Enterprise", _
"Windows 10 Enterprise N", _
"Windows 10 Enterprise G", _
"Windows 10 Enterprise G N", _
"Windows 10 Enterprise 2015 LTSB", _
"Windows 10 Enterprise 2015 LTSB N", _
"Windows 10 Enterprise 2016 LTSB", _
"Windows 10 Enterprise 2016 LTSB N", _
"Windows 10 Enterprise LTSC 2018", _
"Windows 10 Enterprise LTSC 2018 N", _
"Windows 10 Enterprise Remote Server", _
"Windows 10 Enterprise for Remote Sessions", _
"Windows 10 Lean", _
"Windows Server 2019 Essentials", _
"Windows Server 2019 Standard", _
"Windows Server 2019 Datacenter", _
"Windows Server 2019 Standard ACor", _
"Windows Server 2019 Datacenter ACor", _
"Windows Server 2019 Azure Core", _
"Windows Server 2019 ARM64", _
"Windows Server 2016 Essentials", _
"Windows Server 2016 Standard", _
"Windows Server 2016 Datacenter", _
"Windows Server 2016 Standard ACor", _
"Windows Server 2016 Datacenter ACor", _
"Windows Server 2016 Cloud Storage", _
"Windows Server 2016 Azure Core", _
"Windows Server 2016 ARM64", _
"Windows 8.1 Professional", _
"Windows 8.1 Professional N", _
"Windows 8.1 Enterprise", _
"Windows 8.1 Enterprise N", _
"Windows 8.1 Professional WMC", _
"Windows 8.1 Core", _
"Windows 8.1 Core N", _
"Windows 8.1 Core ARM", _
"Windows 8.1 Core Single Language", _
"Windows 8.1 Core Country Specific", _
"Windows 8.1 Embedded Industry", _
"Windows 8.1 Embedded Industry Enterprise", _
"Windows 8.1 Embedded Industry Automotive", _
"Windows 8.1 Core Connected (with Bing)", _
"Windows 8.1 Core Connected N (with Bing)", _
"Windows 8.1 Core Connected Single Language (with Bing)", _
"Windows 8.1 Core Connected Country Specific (with Bing)", _
"Windows 8.1 Professional Student", _
"Windows 8.1 Professional Student N", _
"Windows Server 2012 R2 Standard", _
"Windows Server 2012 R2 Datacenter", _
"Windows Server 2012 R2 Essentials", _
"Windows Server 2012 R2 Cloud Storage", _
"Windows 8 Professional", _
"Windows 8 Professional N", _
"Windows 8 Enterprise", _
"Windows 8 Enterprise N", _
"Windows 8 Professional WMC", _
"Windows 8 Core", _
"Windows 8 Core N", _
"Windows 8 Core Single Language", _
"Windows 8 Core Country Specific", _
"Windows 8 Core ARM", _
"Windows 8 Embedded Industry Professional", _
"Windows 8 Embedded Industry Enterprise", _
"Windows Server 2012 Standard", _
"Windows Server 2012 Datacenter", _
"Windows Server 2012 MultiPoint Standard", _
"Windows Server 2012 MultiPoint Premium", _
"Windows 7 Professional", _
"Windows 7 Professional N", _
"Windows 7 Professional E", _
"Windows 7 Enterprise", _
"Windows 7 Enterprise N", _
"Windows 7 Enterprise E", _
"Windows 7 Embedded POS Ready", _
"Windows 7 Embedded ThinPC", _
"Windows 7 Embedded Standard", _
"Windows Server 2008 R2 Web", _
"Windows Server 2008 R2 HPC edition", _
"Windows Server 2008 R2 Standard", _
"Windows Server 2008 R2 Enterprise", _
"Windows Server 2008 R2 Datacenter", _
"Windows Server 2008 R2 for Itanium-based Systems", _
"Windows MultiPoint Server 2010", _
"Windows Vista Business", _
"Windows Vista Business N", _
"Windows Vista Enterprise", _
"Windows Vista Enterprise N", _
"Windows Server 2008 Web", _
"Windows Server 2008 Standard", _
"Windows Server 2008 Standard without Hyper-V", _
"Windows Server 2008 Enterprise", _
"Windows Server 2008 Enterprise without Hyper-V", _
"Windows Server 2008 HPC (Compute Cluster)", _
"Windows Server 2008 Datacenter", _
"Windows Server 2008 Datacenter without Hyper-V", _
"Windows Server 2008 for Itanium-Based Systems" _
]
Local Const $arrPID[180] = [ _
"85dd8b5f-eaa4-4af3-a628-cce9e77c9a03", _
"6912a74b-a5fb-401a-bfdb-2e3ab46f4b02", _
"2ca2bf3f-949e-446a-82c7-e25a15ec78c4", _
"1777f0e3-7392-4198-97ea-8ae4de6f6381", _
"5b5cf08f-b81a-431d-b080-3450d8620565", _
"e06d7df3-aad0-419d-8dfb-0ac37e2bdf39", _
"9e9bceeb-e736-4f26-88de-763f87dcc485", _
"237854e9-79fc-4497-a0c1-a70969691c6b", _
"c8f8a301-19f5-4132-96ce-2de9d4adbd33", _
"3131fd61-5e4f-4308-8d6d-62be1987c92c", _
"9d3e4cca-e172-46f1-a2f4-1d2107051444", _
"734c6c6e-b0ba-4298-a891-671772b2bd1b", _
"059834fe-a8ea-4bff-b67b-4d006b5447d3", _
"0bc88885-718c-491d-921f-6f214349e79c", _
"fc7c4d0c-2e85-4bb9-afd4-01ed1476b5e9", _
"500f6619-ef93-4b75-bcb4-82819998a3ca", _
"9caabccb-61b1-4b4b-8bec-d10a3c3ac2ce", _
"d450596f-894d-49e0-966a-fd39ed4c4c64", _
"dedfa23d-6ed1-45a6-85dc-63cae0546de6", _
"4f414197-0fc2-4c01-b68a-86cbb9ac254c", _
"da7ddabc-3fbe-4447-9e01-6ab7440b4cd4", _
"6bf301c1-b94a-43e9-ba31-d494598c47fb", _
"aa2a7821-1827-4c2c-8f1d-4513a34dda97", _
"67c0fc0c-deba-401b-bf8b-9c8ad8395804", _
"c3e65d36-141f-4d2f-a303-a842ee756a29", _
"d8cace59-33d2-4ac7-9b1b-9b72339c51c8", _
"ec9d9265-9d1e-4ed0-838a-cdc20f2551a1", _
"d70b1bba-b893-4544-96e2-b7a318091c33", _
"041a06cb-c5b8-4772-809f-416d03d16654", _
"83e04ee1-fa8d-436d-8994-d31a862cab77", _
"bb11badf-d8aa-470e-9311-20eaf80fe5cc", _
"829b8110-0e6f-4349-bca4-42803577788d", _
"cbbaca45-556a-4416-ad03-bda598eaa7c8", _
"b234abe3-0857-4f9c-b05a-4dc314f85557", _
"361fe620-64f4-41b5-ba77-84f8e079b1f7", _
"e914ea6e-a5fa-4439-a394-a9bb3293ca09", _
"dc981c6b-fc8e-420f-aa43-f8f33e5c0923", _
"b322da9c-a2e2-4058-9e4e-f59a6970bd69", _
"b13afb38-cd79-4ae5-9f7f-eed058d750ca", _
"4a5d124a-e620-44ba-b6ff-658961b33b9a", _
"427a28d1-d17c-4abf-b717-32c780ba6f07", _
"e13ac10e-75d0-4aff-a0cd-764982cf541c", _
"ac4efaf0-f81f-4f61-bdf7-ea32b02ab117", _
"6ee7622c-18d8-4005-9fb7-92db644a279b", _
"f7461d52-7c2b-43b2-8744-ea958e0bd09a", _
"fb4875ec-0c6b-450f-b82b-ab57d8d1677f", _
"a30b8040-d68a-423f-b0b5-9ce292ea5a8f", _
"1b9f11e3-c85c-4e1b-bb29-879ad2c909e3", _
"efe1f3e6-aea2-4144-a208-32aa872b6545", _
"771c3afa-50c5-443f-b151-ff2546d863a0", _
"8c762649-97d1-4953-ad27-b7e2c25b972e", _
"00c79ff1-6850-443d-bf61-71cde0de305f", _
"d9f5b1c6-5386-495a-88f9-9ad6b41ac9b3", _
"6f327760-8c5c-417c-9b61-836a98287e0c", _
"9da2a678-fb6b-4e67-ab84-60dd6a9c819a", _
"8ce7e872-188c-4b98-9d90-f8f90b7aad02", _
"cee5d470-6e3b-4fcc-8c2b-d17428568a9f", _
"8947d0b8-c33b-43e1-8c56-9b674c052832", _
"ca6b6639-4ad6-40ae-a575-14dee07f6430", _
"ab586f5c-5256-4632-962f-fefd8b49e6f4", _
"ecb7c192-73ab-4ded-acf4-2399b095d0cc", _
"45593b1d-dfb1-4e91-bbfb-2d5d0ce2227a", _
"df133ff7-bf14-4f95-afe3-7b48e7e331ef", _
"5dc7bf61-5ec9-4996-9ccb-df806a2d0efe", _
"b50c4f75-599b-43e8-8dcd-1081a7967241", _
"2d0882e7-a4e7-423b-8ccc-70d91e0158b1", _
"92236105-bb67-494f-94c7-7f7a607929bd", _
"e558389c-83c3-4b29-adfe-5e4d7f46c358", _
"9ed833ff-4f92-4f36-b370-8683a4f13275", _
"ea509e87-07a1-4a45-9edc-eba5a39f36af", _
"09ed9640-f020-400a-acd8-d7d867dfd9c2", _
"ef3d4e49-a53d-4d81-a2b1-2ca6c2556b2c", _
"58e97c99-f377-4ef1-81d5-4ad5522b5fd8", _
"7b9e1751-a8da-4f75-9560-5fadfe3d8e38", _
"cd918a57-a41b-4c82-8dce-1a538e221a83", _
"a9107544-f4a0-4053-a96a-1479abdef912", _
"2de67392-b7a7-462a-b1ca-108dd189f588", _
"a80b5abf-76ad-428b-b05d-a47d2dffeebf", _
"3f1afc82-f8ac-4f6c-8005-1d233e606eee", _
"5300b18c-2e33-4dc2-8291-47ffcec746dd", _
"82bbc092-bc50-4e16-8e18-b74fc486aec3", _
"4b1571d3-bafb-4b40-8087-a961be2caf65", _
"e0c42288-980c-4788-a014-c080d2e1926e", _
"3c102355-d027-42c6-ad23-2e7ef8a02585", _
"73111121-5638-40f6-bc11-f1d7b0d64300", _
"e272e3e2-732f-4c65-a8f0-484747d0d947", _
"e0b2d383-d112-413f-8a80-97f373a5820c", _
"e38454fb-41a4-4f59-a5dc-25080e354730", _
"7b51a46c-0c04-4e8f-9af4-8496cca90d5e", _
"87b838b7-41b6-4590-8318-5797951d8529", _
"2d5a5a60-3040-48bf-beb0-fcd770c20ce0", _
"9f776d83-7156-45b2-8a5c-359b9c9f22a3", _
"32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee", _
"7103a333-b8c8-49cc-93ce-d37c09687f92", _
"e4db50ea-bda1-4566-b047-0ca50abc6f07", _
"ec868e65-fadf-4759-b23e-93fe37f2cc29", _
"0df4f814-3f57-4b8b-9a9d-fddadcd69fac", _
"034d3cbb-5d4b-4245-b3f8-f84571314078", _
"de32eafd-aaee-4662-9444-c1befb41bde2", _
"34e1ae55-27f8-4950-8877-7a03be5fb181", _
"73e3957c-fc0c-400d-9184-5f7b6f2eb409", _
"90c362e5-0da1-4bfd-b53b-b87d309ade43", _
"a99cc1f0-7719-4306-9645-294102fbff95", _
"8de8eb62-bbe0-40ac-ac17-f75595071ea3", _
"2b5a1b0f-a5ab-4c54-ac2f-a6d94824a283", _
"8c1c5410-9f39-4805-8c9d-63a07706358f", _
"21c56779-b449-4d20-adfc-eece0e1ad74b", _
"61c5ef22-f14f-4553-a824-c4b31e84b100", _
"e49c08e7-da82-42f8-bde2-b570fbcae76c", _
"7b4433f4-b1e7-4788-895a-c45378d38253", _
"3dbf341b-5f6c-4fa7-b936-699dce9e263f", _
"43d9af6e-5e86-4be8-a797-d072a046896c", _
"c06b6981-d7fd-4a35-b7b4-054742b7af67", _
"7476d79f-8e48-49b4-ab63-4d0b813a16e4", _
"81671aaf-79d1-4eb1-b004-8cbbe173afea", _
"113e705c-fa49-48a4-beea-7dd879b46b14", _
"096ce63d-4fac-48a9-82a9-61ae9e800e5f", _
"fe1c3238-432a-43a1-8e25-97e7d1ef10f3", _
"78558a64-dc19-43fe-a0d0-8075b2a370a3", _
"ffee456a-cd87-4390-8e07-16146c672fd0", _
"c72c6a1d-f252-4e7e-bdd1-3fca342acb35", _
"db78b74f-ef1c-4892-abfe-1e66b8231df6", _
"0ab82d54-47f4-4acb-818c-cc5bf0ecb649", _
"cd4e2d9f-5059-4a50-a92d-05d5bb1267c7", _
"f7e88590-dfc7-4c78-bccb-6f3865b99d1a", _
"e9942b32-2e55-4197-b0bd-5ff58cba8860", _
"c6ddecd6-2354-4c19-909b-306a3058484e", _
"b8f5e3a3-ed33-4608-81e1-37d6c9dcfd9c", _
"ba998212-460a-44db-bfb5-71bf09d1c68b", _
"e58d87b5-8126-4580-80fb-861b22f79296", _
"cab491c7-a918-4f60-b502-dab75e334f40", _
"b3ca044e-a358-4d68-9883-aaa2941aca99", _
"00091344-1ea4-4f37-b789-01750ba6988c", _
"21db6ba4-9a7b-4a14-9e29-64a60c59301d", _
"b743a2be-68d4-4dd3-af32-92425b7bb623", _
"a98bcd6d-5343-4603-8afe-5908e4611112", _
"ebf245c1-29a8-4daf-9cb1-38dfc608a8c8", _
"458e1bec-837a-45f6-b9d5-925ed5d299de", _
"e14997e7-800a-4cf7-ad10-de4b45b578db", _
"a00018a3-f20f-4632-bf7c-8daa5351c914", _
"c04ed6bf-55c8-4b47-9f8e-5a1f31ceee60", _
"197390a0-65f6-4a95-bdc4-55d58a3b0253", _
"8860fcd4-a77b-4a20-9045-a150ff11d609", _
"9d5584a2-2d85-419a-982c-a00888bb9ddf", _
"af35d7b7-5035-4b63-8972-f0b747b9f4dc", _
"10018baf-ce21-4060-80bd-47fe74ed4dab", _
"18db1848-12e0-4167-b9d7-da7fcda507db", _
"f0f5ec41-0d55-4732-af02-440a44a3cf0f", _
"d3643d60-0c42-412d-a7d6-52e6635327f6", _
"7d5486c7-e120-4771-b7f1-7b56c6d3170c", _
"95fd1c83-7df5-494a-be8b-1300e1c9d1cd", _
"b92e9980-b9d5-4821-9c94-140f632f6312", _
"54a09a0d-d57b-4c10-8b69-a842d6590ad5", _
"5a041529-fef8-4d07-b06f-b59b573b32d2", _
"ae2ee509-1b34-41c0-acb7-6d4650168915", _
"1cb6d605-11b3-4e14-bb30-da91c8e3983a", _
"46bbed08-9c7b-48fc-a614-95250573f4ea", _
"db537896-376f-48ae-a492-53d0547773d0", _
"aa6dd3aa-c2b4-40e2-a544-a6bbb3f5c395", _
"e1a8296a-db37-44d1-8cce-7bc961d59c54", _
"a78b8bd9-8017-4df5-b86a-09f756affa7c", _
"cda18cf3-c196-46ad-b289-60c072869994", _
"68531fb9-5511-4989-97be-d11a0f55633f", _
"620e2b3d-09e7-42fd-802a-17a13652fe7a", _
"7482e61b-c589-4b7f-8ecc-46d455ac3b87", _
"8a26851c-1c7e-48d3-a687-fbca9b9ac16b", _
"f772515c-0e87-48d5-a676-e6962c3e1195", _
"4f3d1606-3fea-4c01-be3c-8d671c401e3b", _
"2c682dc2-8b68-4f63-a165-ae291d4cf138", _
"cfd8ff08-c0d7-452b-9f60-ef5c70c32094", _
"d4f54950-26f2-4fb4-ba21-ffab16afcade", _
"ddfa9f7c-f09e-40b9-8c1a-be877a9a7f4b", _
"ad2542d4-9154-4c6d-8a44-30f11ee96989", _
"2401e3d0-c50a-4b58-87b2-7e794b7d2607", _
"c1af4d90-d1bc-44ca-85d4-003ba33db3b9", _
"8198490a-add0-47b2-b3ba-316b12d647b4", _
"7afb1156-2c1d-40fc-b260-aab7442b62fe", _
"68b6e220-cf09-466b-92d3-45cd964b9509", _
"fd09ef77-5647-4eff-809c-af2b64659a45", _
"01ef176b-3e0d-422a-b4f8-4ea880035e8f" _
]
Local Const $arrGVLK[180] = [ _
"NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP", _
"6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK", _
"B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B", _
"C4F7P-NCP8C-6CQPT-MQHV9-JXD2M", _
"9BGNQ-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XX-R3X43-63DFG", _
"N2KJX-J94YW-TQVFB-DG9YT-724CC", _
"6NMRW-2C8FM-D24W7-TQWMY-CWH2D", _
"FDNH6-VW9RW-BXPJ7-4XTYG-239TB", _
"GRFBW-QNDC4-6QBHG-CCK3B-2PR88", _
"JCKRF-N37P4-C2D82-9YXRT-4M63B", _
"WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY", _
"CB7KF-BWN84-R7R2Y-793K2-8XDDG", _
"PTXN8-JFHJM-4WC78-MPCBR-9W4KR", _
"2HXDN-KRXHB-GPYC7-YCKFJ-7FVDG", _
"QN4C6-GBJD2-FB422-GHWJK-GJG2R", _
"VP34G-4NPPG-79JTQ-864T4-R3MQX", _
"K9FYF-G6NCK-73M32-XMVPY-F9DRR", _
"GCRJD-8NW9H-F2CDX-CCM8D-9D6T9", _
"HMCNV-VVBFX-7HMBH-CTY9B-B4FXY", _
"MHF9N-XY6XB-WVXMC-BTDCT-MKKG7", _
"TT4HM-HN7YT-62K67-RGRQJ-JFFXW", _
"789NJ-TQK6T-6XTH8-J39CJ-J8D3P", _
"M9Q9P-WNJJT-6PXPY-DWX8H-6XWKK", _
"7B9N3-D94CG-YTVHR-QBPX3-RJP64", _
"XYTND-K6QKT-K2MRH-66RTM-43JKP", _
"BB6NG-PQ82V-VRDPW-8XVD2-V8P66", _
"NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3", _
"NMMPB-38DD4-R2823-62W8D-VXKJB", _
"FNFKF-PWTVT-9RC8H-32HB2-JB34X", _
"VHXM3-NR6FT-RY6RT-CK882-KW2CJ", _
"3PY8R-QHNP9-W7XQD-G6DPH-3J2C9", _
"Q6HTR-N24GM-PMJFP-69CD8-2GXKR", _
"KF37N-VDV38-GRRTV-XH8X6-6F3BB", _
"R962J-37N87-9VVK2-WJ74P-XTMHR", _
"MX3RK-9HNGX-K3QKC-6PJ3F-W8D7B", _
"TNFGH-2R6PB-8XM3K-QYHX2-J4296", _
"D2N9P-3P6X9-2R39C-7RTCD-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3Y", _
"74YFP-3QFB3-KQT8W-PMXWJ-7M648", _
"GT63C-RJFQ3-4GMB6-BRFB9-CB83V", _
"736RG-XDKJK-V34PF-BHK87-J6X3K", _
"YFKBB-PQJJV-G996G-VWGXY-2V3X8", _
"HMBQG-8H2RH-C77VX-27R82-VMQBT", _
"VKK3X-68KWM-X2YGT-QR4M6-4BWMV", _
"VTC42-BM838-43QHV-84HX6-XJXKV", _
"WYR28-R7TFJ-3X2YQ-YCY4H-M249D", _
"TM24T-X9RMF-VWXK6-X8JC9-BFGM2", _
"W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ", _
"YQGMW-MPWTJ-34KDK-48M3W-X4Q6V", _
"39BXF-X8Q23-P2WWT-38T2F-G3FPG", _
"RCTX3-KWVHP-BR6TB-RB6DM-6X7HP", _
"7M67G-PC374-GR742-YH8V4-TCBY3", _
"22XQ2-VRXRG-P8D42-K34TD-G3QQC", _
"4DWFP-JF3DJ-B7DTH-78FJB-PDRHK" _
]
Local $ret[2] = ["", ""]
For $i = 0 To UBound($arrPID) - 1
If $arrPID[$i] == $inputID Then
$ret[0] = $arrGVLK[$i]
$ret[1] = $arrDesc[$i]
EndIf
Next
Return $ret
EndFunc
Func GetCurrentWindowsAndOfficeGVLK()
; Return 二维数组
; [[GVLK1, DESCRIPTION1], [GVLK2, DESCRIPTION2], ....]
; 如果没有匹配到任何结果,返回 []
Local $retList = ObjCreate("System.Collections.ArrayList")
RUNWAIT(@COMSPEC & " /c wmic path SoftwareLicensingProduct where (Description like " & "'%%KMSCLIENT%%'" & ") get ID /format:list > " & @TempDir & "\WindowsID.log", "", @SW_HIDE)
RunWait(@COMSPEC & " /c wmic path OfficeSoftwareProtectionProduct where (Description like " & "'%%KMSCLIENT%%'" & ") get ID /format:list >> " & @TempDir & "\WindowsID.log", "", @SW_HIDE)
Local $aArray = FileReadToArray(@TempDir & "\WindowsID.log")
Local $iLineCount = @extended
If @error Then
Return $retList.ToArray()
Else
For $i = 0 To $iLineCount - 1
If StringInStr($aArray[$i], "ID=") <> 0 Then
$matches = StringRegExp($aArray[$i], "\w{8}-\w{4}-\w{4}-\w{4}-\w{12}", $STR_REGEXPARRAYMATCH)
If UBound($matches) == 1 Then
$retList.Add(GetWindowsOrOfficeGVLKFromID($matches[0]))
EndIf
EndIf
Next
EndIf
Return $retList.ToArray()
EndFunc
Func InstallWindowsAndOfficeGVLK()
; 安装所有找到的Windows & Office GVLK,日志在 @TempDir & "\install_gvlk.log"
Local $arrarrGVLKDesc = GetCurrentWindowsAndOfficeGVLK()
For $i = 0 To UBound($arrarrGVLKDesc) - 1
Local $arrGVLKDesc = $arrarrGVLKDesc[$i]
If StringInStr($arrGVLKDesc[1], "Window") <> 0 Then
; 找到Windows的Gvlk
RunWait(@ComSpec & " /C cscript.exe //nologo " & @WindowsDir & "\System32\slmgr.vbs -ipk " & $arrGVLKDesc[0] & " > " & @TempDir & "\install_gvlk.log", "", @SW_HIDE)
Else
; 找到Office的Gvlk
Local $OfficePath = ""
If StringInStr($arrGVLKDesc[1], "2010") <> 0 Then
$OfficePath = _CHECKOFFICEDIRECTION("14.0")
ElseIf StringInStr($arrGVLKDesc[1], "2013") <> 0 Then
$OfficePath = _CHECKOFFICEDIRECTION("15.0")
Else
$OfficePath = _CHECKOFFICEDIRECTION("16.0")
EndIf
RunWait(@ComSpec & " /C cscript.exe //nologo """ & $OfficePath & """\ospp.vbs /inpkey:" & $arrGVLKDesc[0] & " >> " & @TempDir & "\install_gvlk.log", "", @SW_HIDE)
EndIf
Next
EndFunc
InstallWindowsAndOfficeGVLK()
新增
Windows产品名称 |
KMS Client ID |
GVLK |
Windows 10 Enterprise LTSC 2019 |
32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee |
M7XTQ-FN8P6-TTKYV-9D4CC-J462D |