Хотел бы ещё поделиться своим решением по активации:
а) Компьютеров не в домене;
б) Компьютеров, на которых ранее стояли кряки, в т.ч. KMSAuto, из-за которого соединение между клиентской машиной и сервером KMS может не устанавливаться.
Я создал .cmd файлы и распространил их на недоменные машины с помощью Kaspersky Security Center. Так же распространил их на доменные машины, где ранее стояли кряки.
---
Активация Windows 10 Pro на клиентской машине
Первая команда принудительно задаёт имя сервера и порт. Можно перед выполнением команды сначала зайти на клиентской машине в HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform и там будет параметр KeyManagementServiceName и KeyManagementServicePort и там значения будут либо пустые, либо с ранее заданными серверами KMS. После применения первой команды, если сделать refresh страницы, то значения изменятся на заданным вами.
Вторая команда устанавливает GVLK ключ для Windows 10 Pro.
Третья команда запускает принудительный запрос на сервер KMS об активации.
cscript \windows\system32\slmgr.vbs -skms msk-srv-kms01.corp.mydomain.com:1688
TIMEOUT /T 10 /NOBREAK
cscript \windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
TIMEOUT /T 10 /NOBREAK
cscript \windows\system32\slmgr.vbs /ato
TIMEOUT /T 10 /NOBREAK
Проверить, активировалась ли ОС Win10Pro на клиенте можно введя команду cscript %windir%\system32\slmgr.vbs -dlv
В английской версии ОС будет указано "Licensed"
C:\>cscript %windir%\system32\slmgr.vbs -dlv
Сервер сценариев Windows (Microsoft ®) версия 5.812
Copyright (C) Корпорация Майкрософт 1996-2006, все права защищены.
Версия службы лицензирования программного обеспечения: 10.0.19041.685
Имя: Windows(R), Professional edition
Описание: Windows(R) Operating System, VOLUME_KMSCLIENT channel
Идентификатор активации: 2de67xxx-bxxx-462a-b1ca-108xxx89fxxx
Идентификатор приложения: 55xxx734-d682-4d71-983e-d6ecxxx6059f
Расширенный PID: 03612-03311-000-000001-03-1049-19042.0000-0192021
Канал ключей продуктов: Volume:GVLK
Идентификатор установки: 1295263909837216715400xxx18025xxx828988114071xxx3761xxx36926xxx
Частичный ключ продукта: T83GX
Состояние лицензии: имеет лицензию
Срок активации корпоративных лицензий истечет через 256787 мин (179 дн.)
Оставшееся число возвращений к исходному состоянию активации Windows: 1001
Оставшееся число возвратов к исходному состоянию активации SKU: 1001
Доверенное время: 28.01.2021 15:23:09
Настроенный тип активации: все
Сведения о последней активации:
Сведения о клиенте службы управления ключами
Идентификатор клиентского компьютера (CMID): xxx22xxx-xxxx-xxx-xxx-xxxdf0b63xxx
Зарегистрированное имя компьютера KMS: msk-srv-kms01.corp.mydomain.com:1688
IP-адрес компьютера KMS: 172.16.0.13
Расширенный PID компьютера KMS: xxxxx-00206-551-xxx322-03-xxx3-xxx63.0000-xxx2021
Интервал активации (в мин.): 120
Интервал обновления (в мин.): 10080
Кэширование узла KMS включено
Проверить активацию клиентских ОС на KMS сервере можно так (напомню, что если активировать Windows Server 2019 как KMS хост с помощью ключа от Windows Server 2019, то он после этого может активировать клиентские ОС до 8.1 (вроде бы, но может и Win7 - я не пробовал):
C:\Windows\system32>cscript slmgr.vbs /dlv
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
Software licensing service version: 10.0.17763.1697
Name: Windows(R), ServerDatacenter edition
Description: Windows(R) Operating System, VOLUME_KMS_WS19 channel
Activation ID: xxxxxad1-xxx9-xxx6-xxxx-xxxxa2xxxxb4
Application ID: xxxxxxxxx-dxxx-xxxx-9xxx-xxxc3xxx0xxx
Extended PID: xxxxx-00xxx-551-6xxxx2-03-1033-xxxxx.xxxx-xxxxxxx
Product Key Channel: Volume:CSVLK
Installation ID: xxxx81277xxxx531xxxx58739xxxx30137xxxxx625xxxx6312xxxx
Use License URL: https://activation-v2.sls.microsoft.com/SLActivateProduct/SLActivateProduct.asmx?configextension=Retail
Validation URL: https://validation-v2.sls.microsoft.com/SLWGA/slwga.asmx
Partial Product Key: xxxxx
License Status: Licensed
Remaining Windows rearm count: 9xx
Remaining SKU rearm count: 10xx
Trusted time: 1/28/2021 3:36:27 PM
Key Management Service is enabled on this machine
Current count: 42
Listening on Port: 1688
DNS publishing enabled
KMS priority: Normal
Key Management Service cumulative requests received from clients
Total requests received: 172
Failed requests received: 6
Requests with License Status Unlicensed: 0
Requests with License Status Licensed: 65 - ранее тут было 64 активированных ПК, сейчас - 65
Requests with License Status Initial grace period: 0
Requests with License Status License expired or Hardware out of tolerance: 0
Requests with License Status Non-genuine grace period: 0
Requests with License Status Notification: 101
C:\Windows\system32>
---
Активация Office
Первая команда так же задаёт имя KMS сервера и порт.
Вторая команда устанавливает GVLK ключ от MS Office 2019 Std.
Третья команда, и тут видно различие, запускает не slmgr.vbs а ospp.vbs с ключом /act для принудительного запроса на сервер KMS об активации. Тут важно отметить, что эта команда отработает только если офис 2019 32-х битный. Если офис 64-х битный, то команда будет выглядеть так: cscript "%SystemDrive%\Program Files\Microsoft Office\Office16\ospp.vbs" /act
cscript \windows\system32\slmgr.vbs /skms msk-srv-kms01.corp.mydomain.com:1688
TIMEOUT /T 10 /NOBREAK
cscript \windows\system32\slmgr.vbs /ipk 6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK
TIMEOUT /T 10 /NOBREAK
cscript "%SystemDrive%\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /act
TIMEOUT /T 10 /NOBREAK
Проверить активацию можно так:
Для x64 офиса 2019: cscript "%SystemDrive%\Program Files\Microsoft Office\Office16\ospp.vbs" /dstatus
Для x32 офиса 2019: cscript "%SystemDrive%\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" /dstatus
Результат:
C:\>CD %SystemDrive%\Program Files (x86)\Microsoft Office\Office16
C:\Program Files (x86)\Microsoft Office\Office16>cscript ospp.vbs /dstatus
Сервер сценариев Windows (Microsoft ®) версия 5.812
Copyright (C) Корпорация Майкрософт 1996-2006, все права защищены.
---Processing--------------------------
---------------------------------------
PRODUCT ID: 00xxx-80000-00000-Axxxx
SKU ID: 1777f0e3-7392-4198-97ea-xxxxde6fxxxx
LICENSE NAME: Office 19, Office19ProjectStd2019VL_KMS_Client_AE edition
LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
BETA EXPIRATION: 01.01.1601
LICENSE STATUS: ---LICENSED---
REMAINING GRACE: 173 days (249154 minute(s) before expiring)
Last 5 characters of installed product key: JXxxx
Activation Type Configuration: ALL
DNS auto-discovery: KMS name not available
KMS machine registry override defined: msk-srv-kms01.corp.mydomain.com:1688
Activation Interval: 120 minutes
Renewal Interval: 10080 minutes
KMS host caching: Enabled
---------------------------------------
PRODUCT ID: 0xxx5-90000-00000-xxxxx
SKU ID: 691xxx4b-a5fb-401a-xxxb-2e3axxxf4b02
LICENSE NAME: Office 19, Office19Standard2019VL_KMS_Client_AE edition
LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
BETA EXPIRATION: 01.01.1601
LICENSE STATUS: ---LICENSED---
REMAINING GRACE: 173 days (249123 minute(s) before expiring)
Last 5 characters of installed product key: 9Dxxx
Activation Type Configuration: ALL
DNS auto-discovery: KMS name not available
KMS machine registry override defined: msk-srv-kms01.corp.mydomain.com:1688
Activation Interval: 120 minutes
Renewal Interval: 10080 minutes
KMS host caching: Enabled
---------------------------------------
PRODUCT ID: 00xxx-10000-00xxxx-Axxxx
SKU ID: e06d7xxx-axxx-4xxx-8dfb-0xxx7e2bxxxx
LICENSE NAME: Office 19, Office19VisioStd2019VL_KMS_Client_AE edition
LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
BETA EXPIRATION: 01.01.1601
LICENSE STATUS: ---LICENSED---
REMAINING GRACE: 173 days (249150 minute(s) before expiring)
Last 5 characters of installed product key: X4xxx
Activation Type Configuration: ALL
DNS auto-discovery: KMS name not available
KMS machine registry override defined: msk-srv-kms01.corp.mydomain.com:1688
Activation Interval: 120 minutes
Renewal Interval: 10080 minutes
KMS host caching: Enabled
---------------------------------------
---------------------------------------
---Exiting-----------------------------
C:\Program Files (x86)\Microsoft Office\Office16>
Посмотреть на KMS сервере статистику по активации офиса 2019 std:
Microsoft Windows [Version 10.0.17763.1697]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cscript \windows\system32\slmgr.vbs /dlv 70512334-47B4-44DB-A233-BE5EA33B914C
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
Software licensing service version: 10.0.17763.1697
Name: Office 19, Office19KMSHost2019VL_KMS_Host edition
Description: Office 19, VOLUME_KMS channel
Activation ID: xxxx2xxx-47b4-44db-axxx-be5xxxxxxxxx
Application ID: xxx1ce15-axxx-47xx-af46-f275xxx70xxx
Extended PID: 0xxxx-00206-666-xxx209-03-1033-17763.0000-018xxxx
Product Key Channel: Volume:CSVLK
Installation ID: xxxxx4971645554881144390xxxxx66227642654805739318xxxxx
Use License URL: https://activation.sls.microsoft.com/SLActivateProduct/SLActivateProduct.asmx?configextension=o14
Validation URL: https://go.microsoft.com/fwlink/?LinkID=187557
Partial Product Key: xxxxx
License Status: Licensed
Remaining App rearm count: -1
Remaining SKU rearm count: -1
Trusted time: 1/28/2021 3:35:54 PM
Key Management Service is enabled on this machine
Current count: 10
Listening on Port: 1688
DNS publishing enabled
KMS priority: Normal
Key Management Service cumulative requests received from clients
Total requests received: 622
Failed requests received: 562
Requests with License Status Unlicensed: 0
Requests with License Status Licensed: 21
Requests with License Status Initial grace period: 39
Requests with License Status License expired or Hardware out of tolerance: 0
Requests with License Status Non-genuine grace period: 0
Requests with License Status Notification: 0