The Key Management Service (KMS) is a Microsoft service for activating an organization’s Windows and Office software. It helps simplify the activation process, particularly in a network, as it works without the need to contact Microsoft’s servers for activation. Generally, a “key” is usually provided to allow users to activate their product online. Meanwhile, this method is considered time-consuming and often prone to errors.
Fortunately, Microsoft offers an alternative solution to online activation called the Key Management Service (KMS). However, since it is a relatively new method of activation, a couple of users find it confusing. So, what’s KMS, and how does it work? This article is an overview of Key Management Service and how you can activate Windows and Office products using it.
What is a Key Management Service (KMS)?
A Key Management Service (KMS) is a utility tool for safely storing, managing, and backing up cryptographic keys. Generally, the various types of keys that each KMS supports vary from one platform to another. Virtually, most key management services permit you to manage one or more secret keys. They include SSL certificates, private keys, SSH key pairs, API keys, code-signing private keys, document-signing private keys, and database encryption keys.
When using key management services, you can rest assured that your secret keys will be intact. That’s because the tool is designed to prevent the key from being lost or stolen, which usually leads to a data breach, data loss, or downtime. The basic features of key management services vary to some extent. But you should expect to see features like:
-
Web-based interface (to manage your cryptographic keys).
-
APIs and/or plugins (for integrating KMS with your servers, systems, and software).
-
Safe storage and backup of individual private keys (usually on a hardware security module).
How To Activate Windows with Key Management Services
To use KMS, you must have a KMS host available on your local network. A specific product key is required for computers that activate with a KMS host. The Microsoft Generic Volume License Key (GVLK) is the official name for this key, which is also commonly referred to as the KMS client key. Also, it is worth noting that Retail, OEM, MSDN, or MSDNAA versions of Windows cannot be activated using the KMS service.
Computers running volume licensing editions of Windows Server and Windows client are already configured as GVLK clients. Hence, they are considered KMS clients by default.
Having that in mind, follow the steps below to activate Windows with KMS:
Step 1: Open the “Administrative Command Prompt”
The first step involves opening the command prompt as an administrator. To do that, hit the Win + R on your keyboard. Enter «cmd» into the Run dialog box, then press Ctrl + Shift + Enter. This will launch Command Prompt as an administrator.
Step 2: Install the “KMS” Key
Enter the following command in an administrative terminal to install the «KMS» key:
slmgr /ipk /ipk KMS_host_key>
Replace «KMS_host_key>» with the KMS host key received from Microsoft here. Once you’ve installed the «KMS» key on your PC, run the following command to activate it and ensure you’re connected to the internet:
/ato slmgr.vbs.
Step 3: Verify the Activation
Open the «Command Prompt» and use the «slmgr» command-line tool to check the activation status by inputting the following command:
/dlv /slmgr
A new window will come up after executing the preceding command. Look for «License Status.» If it reads «Licensed,» it means Windows 10 has been successfully activated.
Also, look for the «Configured Activation Type» part to see if you’re KMS-activated
How to Activate Office With Key Management Service
Activating Office Key Management Service (KMS) is a process used by organizations to activate multiple Microsoft Office (such as Office 2016 and Office 2019) installations using a centralized server rather than individual product keys. To activate Office using KMS, follow these steps:
Step 1: Get a KMS Host Key
The first thing is to ensure that Microsoft Office is installed on the computers you want to activate using KMS. Also, you’ll need a KMS host key from Microsoft. This key is used to set up your KMS server. You can request this key through the Microsoft Volume Licensing Service Center (VLSC) or your Microsoft Volume Licensing representative.
Step 2: Set Up a KMS Host Server
Choose a Windows Server computer to be your KMS host. It should be a dedicated server for this purpose. Then, install the KMS host key on the server using the following command, replacing «Your-KMS-Host-Key» with your actual KMS host key.
cscript C:\Windows\System32\mgr.vbs/1pk Your-KMS-Host-Key
After that, activate the KMS host key on the server with the following command:
cscript C:\Windows\System32\slmgr.vbs /ato
Step 3: Configure the KMS Host
Once you’re done with activation, you need to configure the host server to listen for Office activation requests. Use the following command:
cscript C:\Windows\System32\slmgr.vbs /skms your-kms-server-name-or-ip
Ensure you replace «your-kms-server-name-or-ip» with the hostname or IP address of your KMS host server.
Step 4: Activate Office Clients
The next step is to activate Office clients. Open a command prompt with administrator privileges on the computers where you have Microsoft Office installed. Use the following command to activate Office using the KMS server:
cscript «C:\Program Files\Microsoft Office\Office16\ospp.vbs» /sethst:your-kms-server-name-or-ip
Ensure you replace «your-kms-server-name-or-ip» with the hostname or IP address of your KMS host server.
After that, activate Office on each computer by running:
cscript «C:\Program Files\Microsoft Office\Office16\ospp.vbs» /act
Remember that the path to the «ospp.vbs» script may vary depending on your Office and installation path.
Step 5: Verify Activation
To confirm that Office is successfully activated through your KMS server, you can check the activation status on individual computers by running:
cscript «C:\Program Files\Microsoft Office\Office16\ospp.vbs» /dstatus
There you have it! Your Microsoft Office installations should now be activated using the Key Management Service. Ensure that your KMS host server remains active and reachable for continued activation of Office clients.
Why Use WPS Office?
Key Management Services (KMS) is a technology for managing encryption keys and certificates, while WPS Office is an office productivity suite for creating and editing documents, spreadsheets, and presentations. They serve different purposes but can be used together to secure documents and data stored within an office suite.
However, we recommend that you download and use WPS Office as an alternative to Microsoft Office. Below are some of the reasons you should use WPS Office over Microsoft Office:
Price
WPS and Microsoft Office are both premium software. However, the two office suites offer a free version that can be used to test out some of the software’s features. The premium version, on the other hand, provides the best Office suite experience. WPS is considerably less expensive than Microsoft Office, with the Premium version costing $29.99 per year.
With the premium version, you may connect up to nine devices at once (3 PCs and 6 mobile devices). You can also get up to 20GB of cloud storage space, access to the cloud collaboration option, ad-free usage, and much more.
Compatibility
WPS and Microsoft Office work with a wide range of operating systems. However, whether you have a Windows, Linux, Mac, iOS, or Android device, it must meet the minimal system requirements to execute this software.
To operate Microsoft Office successfully, you need a device with at least two cores, a clock speed of at least 1.6 GHz, two gigabytes of RAM, and four gigabytes of disk space for Windows or ten gigabytes for Mac.
In contrast, the system requirements for running the WPS office are significantly lower. To install and use the WPS software, you must have a Pentium II processor with a clock speed of 266 MHz or higher. In addition, the computer must have at least 128MB of RAM and 200MB of storage space, which a smartphone can offer effortlessly.
Since WPS has lesser system requirements, it is possible to install and run this office suite on a low-end or older machine.
Features
WPS and Microsoft Office are comprehensive Office suites that include a variety of productivity features and functionalities. These features are typically used by office professionals, students, or for personal use and include a word processor, spreadsheet software, and so on.
It may interest you to know that WPS Office provides more advanced features cost-effectively compared to Microsoft Office.
User-friendly Interface
WPS and Microsoft Office interfaces appear very similar, especially in terms of presentation and design. The user interface of these Office Suites, however, varies. WPS has a more streamlined and modern interface than Microsoft Office, which makes it more appealing.
WPS has a tabbed design that allows you to swiftly and easily switch between documents. WPS also contains a ribbon toolbar, similar to Microsoft Office, which makes it easy to access formatting and editing functionalities.
-
Use Word, Excel, and PPT for FREE, No Ads.
-
Edit PDF files with the powerful PDF toolkit.
-
Microsoft-like interface. Easy to learn. 100% Compatibility.
-
Boost your productivity with WPS’s abundant free Word, Excel, PPT, and CV templates.
Algirdas Jasaitis
FAQs
What is Key Management Services (KMS) activation planning?
KMS is a utility tool for volume activation that uses a client-server model to activate clients. For activation, KMS clients must connect to a KMS server known as the KMS host on your network.
However, KMS hosts do not need to be dedicated servers, as KMS can coexist with other services. A KMS host can be installed on any physical or virtual system running a compatible Windows Server or Windows client operating system.
Also, it is worth noting that a KMS host running Windows Server can activate computers running server and client operating systems. But a KMS host running Windows Client can not activate computers running server and client operating systems. It can only activate computers running client operating systems.
You need a key called the KMS host key to activate or authenticate the KMS host with Microsoft before you can use KMS. This key is also known as the Microsoft Customer Specific Volume License Key (CSVLK).
Key Management refers to the process of putting certain standards in place to ensure the security of cryptographic keys. It works within a lifecycle of processes that are required to guarantee the key is securely created, kept, used, and rotated.
The generation of a key is the first step in ensuring its security. If the key in question is generated using a weak encryption algorithm or in an insecure region, any attacker might easily uncover the encryption key’s value.
The next step in the key lifecycle is to ensure that the keys are distributed safely. Hence, it must be distributed via a secure TLS or SSL connection to ensure that it is safe.
After distribution, the key is used for cryptographic activities. The key should only be used by authorized individuals to ensure it is not misused, copied, or compromised. The key must be saved for subsequent decoding after using it to encrypt data.
When a key’s crypto period, or the time period during which the key is usable expires, the key must be rotated. If an encrypted set of data’s key expires, it is retired and replaced with a fresh key. When a key is compromised, revoking or destroying it is the best thing to do.
Summary
Conclusively, installing a KMS host key on a computer running Windows version allows you to activate Windows and Office products. Being a relatively new method of activation, many users may find it challenging to use. Meanwhile, with the steps above, you should be able to get it right.
Should you prefer an alternative to Microsoft Office, we recommend using WPS Office. With its remarkable features similar to that of Microsoft Office, it’s worth a trial. In essence, you don’t have to go through the hurdles of activation when you work with WPS Office.
Posted by: kurtsh | August 14, 2015
Many enterprises use Key Management Service (KMS) to activate their Windows clients. I found a ton of documentation on how to use KMS specifically for Windows 10. (Enterprise or Professional)
ACQUIRING THE KMS KEYS
There are two keys you need to obtain in order to activate your Windows 10 clients using KMS.
- CLIENT KEYS
The KMS Client Setup keys are publicly posted at https://technet.microsoft.com/en-us/library/JJ612867.aspx and are the same for everyone. They are:- Windows 10 Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX
- Windows 10 Professional N: MH37W-N47XK-V7XM9-C7227-GCQG9
- Windows 10 Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43
- Windows 10 Enterprise N: DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
- Windows 10 Education: NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
- Windows 10 Education N: 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
- Windows 10 Enterprise 2015 LTSB: WNMTR-4C88C-JK8YV-HQ7T2-76DF9
- Windows 10 Enterprise 2015 LTSB N: 2F77B-TNFGY-69QQF-B8YKP-D69TJ
…
- HOST KEYS:
Obtaining the KMS Host Key is a bit more difficult since it requires accessing the Volume Licensing Service Center, which only Volume Licensing administrators generally have access to. To retrieve the KMS Service Host Key supporting Win10 activations from the Volume Licensing Service Center:- Login to the Volume Licensing Service Center (https://www.microsoft.com/Licensing/servicecenter/default.aspx)
- Click through “Licenses –> Relationship Summary”
- Select the Licensing ID you wish to manage.
- Click the “Product Key” tab.
- Look for the key called “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
- Copy that down and use when installing the new KMS Service Host key below.
PATCHING THE KMS SERVICE HOST
As with any other release of Windows or Windows Server, the KMS Service host must be patched to support the new OS. Instructions for doing so for Windows 10 is located at the support article for “KB3058168: Update that enables Windows 8.1 and Windows 8 KMS hosts to activate Windows 10”
https://support.microsoft.com/en-us/kb/3058168
Or here: “KB3079821: Update that enables Windows 7 and Windows Server 2008 R2 KMS hosts to activate Windows 10”
https://support.microsoft.com/en-us/kb/3079821
The steps are as follows:
- Verify that your KMS service host is running Windows 8.1, Windows Server 2012 R2, Windows 8, or Windows Server 2012. If it isn’t, this won’t work and you’ll need to wait until there is an update available for KMS running on Windows Server 2008 R2 or Windows 7. We released the Windows Server 2008 R2 and Windows 7 patch here:
https://support.microsoft.com/en-us/kb/3079821 - Download the update for the OS that your KMS server is running on.
- Run the .msu file & follow the instructions.
- Restart the KMS server.
INSTALLING THE NEW KMS SERVICE HOST KEY
To get your KMS Services host to activate Windows 10 clients, you’ll need to update the KMS Host Key on your KMS Server. This is documented at the page called “Deploy KMS Activation” (https://technet.microsoft.com/en-us/library/dn502531.aspx) & “Slmgr.vbs Options for Volume Activation” (https://technet.microsoft.com/en-us/library/dn502540.aspx)
Here’s the general steps:
- Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk - Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
slmgr.vbs /ipk <25-digit-key-goes-here> - Verify that the key took by executing a Detailed License View:
slmgr.vbs /dlv
(WARNING: You must activate a minimum of 25 Windows clients or 5 Windows servers – as with any new KMS implementation – or the KMS services host key will be deactivated. Deactivation will require you to rearm the key by calling into Microsoft Volume Activation & potentially having to fill out & fax in forms, documents, and stuff just to get the key going again so you can deploy Windows 10. So don’t mess this up.)
DEPLOYING CLIENTS WITH THE CLIENT KEYS
To start deploying your Windows 10 clients, you’ll use the KMS Client keys you found above for the edition of Windows that you plan on deploying.
By default, Volume License editions of Windows 10 are KMS clients. If the computers you want to activate by using KMS are using Windows 10 and the network allows DNS auto-discovery, no further configuration is needed.
The steps for integrating the client key into your deployment is available at “Deploy KMS Activation – Configuring KMS Clients”. (https://technet.microsoft.com/en-us/library/dn502531.aspx)
Общие сведения
SLMGR – это сценарий VBS для управления лицензированием программного обеспечения Windows, а команда, запускаемая через консоль, предназначена для локального или удаленного компьютера. Сам сценарий хранится по следующему адресу: %SystemRoot\system32\slmgr\
в файле «slmgr.ini».
С помощью данного средства управления можно вводить и удалять лицензионные ключи, активировать систему, сбросить счетчик активации и выполнять другие действия, которые связаны с лицензированием.
Синтаксис команды slmgr
довольно обширный – существует огромное количество комбинаций, которые могут потребоваться в той или иной ситуации. Разберем наиболее часто используемые:
slmgr /xpr
– команда предназначена для просмотра активации Windows 10, в том числе и даты окончания лицензии, если используется не постоянная;slmgr /dli
– просмотр текущей информации о лицензии продукта;slmgr /dlv
– данный запрос позволяет узнать намного больше информации о лицензии, чем предыдущие две: номер версии, идентификатор активации, расширенный идентификатор PID и другие параметры;slmgr /rearm
– сброс таймеров активации, который позволяет повторно активировать Windows 10, например после истечения 30-дневного пробного периода;slmgr /cpky
– удаление ключа из системного реестра операционки, то есть выполнение данной команды не деактивирует Windows, а не позволит получить ключ программам для поиска ключей и различным вредоносным утилитам;slmgr /ato
– активация онлайн, которая сможет пригодиться, если со стандартной активацией возникли проблемы;slmgr /ipk 12345-12345-12345-12345-12345
– изменение ключа путем ввода реальной комбинации после запроса «ipk», но важно, чтобы она прописывалась через тире, а после нужна перезагрузка компьютера;slmgr /upk
– удаление ключа продукта, то есть деактивация лицензии – новые параметры вступят в силу после перезапуска Windows (отобразится соответствующее уведомление об успешном удалении).
Существуют и другие параметры, предназначенные для корпоративного лицензирования (активация на основе токенов), управления лицензированием для определенных приложений, установленных на компьютер, но они чаще всего используются опытными пользователями. На официальном сайте Microsoft об этом есть более детальная информация, а мы разберем активацию Windows 10 с применением средства SLMGR ниже.
Применение на практике
Чтобы применить активацию SLMGR, потребуется использовать встроенную консоль – «Командную строку». Для просмотра сведений и различной информации о лицензии достаточно запустить ее в обычном режиме. В случае если придется вносить различные изменения на системном уровне, в том числе при выполнении активации продукта, открывать «Командную строку» нужно с расширенными правами.
- Запустите консоль от имени администратора. В этом может помочь строка системного поиска – введите соответствующий запрос, затем выберите соответствующий запуск.
Также у нас на сайте есть дополнительные методы запуска консоли с расширенными правами.
Подробнее: Открытие командной строки в Windows 10
- Для активации продукта сначала введите команду
slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
, где под символами «X» подразумевается ключ продукта. Чтобы ее выполнить, нажмите клавишу «Enter». Эти действия установят ключ в операционную систему. - Далее потребуется выполнить еще одну команду, которая непосредственно активирует систему, —
slmgr.vbs /ato
. По итогу должно появиться системное окно с информацией о выполнении операции. - После этого перезагрузите компьютер, чтобы настройки были применены. Также в этом случае можно использовать еще одну команду —
slmgr.vbs /dli
в «Командной строке». Она позволит узнать базовую информацию о лицензии.
При необходимости можете использовать и другие параметры, чтобы посмотреть текущее состояния активации продукта. Например,
slmgr.vbs /dlv
– для отображения более подробных сведений.
Наша группа в TelegramПолезные советы и помощь
Эта статья посвящена подробному описанию особенностей функционирования и использовании технологии KMS активации продуктов Microsoft. Служба управления ключами KMS (Key Management Server) позволяет корпоративным заказчикам программы Volume License развертывать в сети собственный хост, на котором будут активироваться все клиенты. Благодаря KMS, устройствам в сети не нужно обращаться к серверам активации Microsoft в интернете для активации Windows, Office, Project, или Visio.
Содержание:
- Архитектура службы KMS активации Microsoft
- Установка KMS сервера на Windows Server в корпоративной сети
- Активация клиента Windows с помощью KMS сервера
- Активация MS Office на KMS сервере
- VAMT: Управление корпоративными ключами
- Распространённые ошибки при использовании KMS сервера активации
Архитектура службы KMS активации Microsoft
Инфраструктура KMS состоит из KMS-сервера, который активируется в Microsoft (эта операция выполняется один раз по телефону или онлайн) и клиентов KMS, отправляющих запросы на активацию на KMS сервер. В качестве клиентов KMS сервера могут выступать рабочие станции Windows, хосты с Windows Server и компьютеры установленным Microsoft Office 2021/2019/2016/2013.
Сам KMS сервер активируется с помощью специального корпоративного CSVLK ключа (KMS host key), получить который может каждый корпоративный клиент Microsoft в личном кабинете на сайте корпоративного лицензирования VLSC (https://www.microsoft.com/Licensing/servicecenter/default.aspx — Microsoft Volume Licensing Service Center –> License -> Relationship Summary -> Product Keys -> скопируйте ключ для Windows Srv 2019 DataCtr/Std KMS).
На данный момент KMS host key по-умолчанию отсутствует в VLSC. Microsoft сгенерирует вам KMS ключ только после запроса в техподдержку.
Ключ CSVLK нужно указать на KMS сервере и затем выполнить активация вашего KMS сервера в интернете на серверах Microsoft. KMS сервер нужно активировать только один раз.
Один KMS сервер может активировать неограниченное число KMS клиентов. Например, даже несмотря на то, что в вашем соглашении указано, что вы приобрели корпоративную лицензии на 100 компьютеров, теоретически вы можете активировать тысячи компьютеров (конечно, это будет нарушением лицензионного соглашения, но технически KMS сервер вас в этом не ограничивает). Также отметим, что информация о проведенных активациях и их количестве не передается KMS севером за пределы организации.
KMS сервер может активировать клиентов в разных доменах, а также клиенты в рабочих группах. Один KMS сервер может одновременно активировать и десктопные редакции Windows, и Windows Server и продукты из пакета Microsoft Office.
При установке KMS сервера можно автоматически зарегистрировать специальную SRV (_VLMCS) запись в DNS. По этой DNS записи любой клиент может найти имя KMS сервера в домене. Например, чтобы найти KMS сервер в вашем домене corp.winitpro.ru, выполните команду:
nslookup -type=srv _vlmcs._tcp.corp.winitpro.ru
_vlmcs._tcp.corp.winitpro.ru SRV service location: priority = 0 weight = 0 port = 1688 svr hostname = msk-man01.corp.winitpro.ru msk-man01.corp.winitpro.ru internet address = 10.1.10.25
В этом примере видно, что служба KMS развернута на сервере msk-man01 и отвечает по порту TCP 1688.
Чтобы KMS сервер мог активировать клиента, на клиенте (Windows или Office) должен быть указан специальный публичный ключ KMS, который называется GVLK ключом (Generic Volume License Key- универсальный ключ многократной установки). После того, как вы указали GVLK ключ, клиент KMS пытается сам найти в DNS SRV запись, указывающую на сервер KMS и пытается произвести активацию.
Полный список GVLK ключей для всех поддерживаемых версий Windows доступен на сайте Microsoft по ссылке https://learn.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys
KMS сервер, активированный более новым ключом KMS host key, может активировать все предыдущие версии Windows, но не наоборот. Например, KMS сервер, актированный ключом Windows Srv 2016 DataCtr/Std KMS не сможет активировать компьютеры Windows 11 или Windows Server 2022/2019. Для поддержки современных версий Windows вам нужно получить новый CSVLK ключ и активировать его на KMS сервере.
Совет. Для доменной сети AD Microsoft позволяет использовать специальное расширение KMS, которое называется Active Directory Based Activation (ADBA). ADBA позволяет автоматически активировать компьютеры с Office, Windows, или Windows Server добавленные в домен Active Directory. В этом случае выделенный KMS сервер отсутствует, но вы не сможете активировать устройства не в домене или в другом лесу.
Установка KMS сервера на Windows Server в корпоративной сети
Для развертывания службы KMS вам нужен хост с Windows Server (можно совмещать роль KMS с другими ролями).
Служба KMS не требовательна к ресурсам, поэтому эту роль можно установит на любой хост. К службе KMS обычно не предъявляется требований высокой доступности. Если сервер KMS не доступен несколько часов (и даже дней), этот простой никак не скажется на работе предприятия.
- Установите роль Volume Activation Services через консоль Server Manager или командой PowerShell:
Install-WindowsFeature -Name VolumeActivation -IncludeAllSubFeature –Include ManagementTools
- Затем откройте командную строку, установите корпоративный CSVLK ключ и активируйте ваш KMS сервер в Microsoft:
slmgr /ipk <KMS_host_ключ_Windows_Server_2019>
slmgr /ato
При выполнении онлайн активации самого сервера KMS (выполняется один раз), с сервера KMS должны быть доступны сайты Microsoft по портам 80/443. В изолированной среде сервер KMS можно активировать по телефону (телефон поддержки Microsoft для вашей страны можно найти в файле
%windir%System32\SPPUI\Phone.inf
). - Клиенты по-умолчанию будут подключаться к KMS серверу по порту TCP/1688. Включите соответствующее правило Windows Firewall:
Enable-NetFirewallRule -Name SPPSVC-In-TCP
- Чтобы опубликовать SRV запись для KMS сервера в DNS, выполните команду:>
slmgr /sdns
- Проверьте, что ваш KMS сервер активирован:
slmgr.vbs /dlv
Команда должна вернуть что то в виде, Description =
VOLUME_KMS_WS22 channel
, License status =
Licensed
.
Активация клиента Windows с помощью KMS сервера
Для ручного управления KMS активация на компьютерах Windows используется встроенный VBS скрипт
%WinDir%\System32\slmgr.vbs
. Вы можете вывести его опции, просто выполните эту команду без параметров.
Чтобы вручную активировать рабочую станцию с Windows или хост Windows Server на KMS сервере, выполните следующие действия.
- Задайте GVLK ключ в зависимости от версии Windows (полный список публичных GVLK ключей есть на сайте Microsoft по ссылке выше). Например, для Windows 10 или 11:
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
- Если в домене не настроено автообнаружение KMS (по SRV записи), вы можете указать адрес KMS сервера и порт вручную:
slmgr /skms msk-man02.winitpro.ru:1688
- Теперь можно выполнить активацию вашей копии Windows на KMS сервере:
slmgr /ato
Должна появиться надпись:--------------------------- Windows Script Host --------------------------- Activating Windows(R), EnterpriseS edition (xxxxxxxxxxxxxxxxxxxx) ... Product activated successfully.
- Проверить статус активации Windows:
slmgr /dlv
Если Windows успешно активировалась на KMS тут должно быть указано:VOLUME_KMSCLIENT channel License status: Licensed
Обратите внимание, что активация продуктов Microsoft на сервере KMS возможна только при удовлетворении следующих требований к минимальному количеству KMS клиентов (т.н. порог активации):
- Клиентские ОС: 25
- Серверные ОС: 5
- MS Office: 5
После того, как количество обращений на активацию от клиентов превысит порога активации, сервер KMS начнет активировать лицензии. Текущее значение клиентов KMS можно получить с помощью команды:
slmgr.vbs /dlv
Значение в поле Current Count не увеличивается после достижения 50.
Компьютеры, активированные на KMS сервере для продления активации должны подключатся к KMS серверу как минимум один раз в 180 дней. Если компьютер не подключался более 180 дней, то активация активация продукта “слетает”, и Windows переходит в режим ознакомительного использования (grace period).
Для устройства, которые не подключены к корпоративной сети рекомендуется использовать MAK ключ (ключ многократной активации).
Активация MS Office на KMS сервере
Для активации продуктов MS Office на KMS сервере нужно установить специальное расширение Microsoft Office Volume License Pack. В зависимости от версии MS Office, которая используется у вас, вам нужно скачивать и установить соответствующую версию volumelicensepack. Сейчас доступны:
- Microsoft Office 2016 Volume License Pack
- Microsoft Office 2019 Volume License Pack
- Microsoft Office LTSC 2021 Volume License Pack
После установки License Pack для MS Office, на KMS сервере нужно установить ваш персональный CSVLK ключ для Office и выполнить его активацию.
Для управления активацией продуктов из пакета Microsoft Office на клиентах используется другой vbs скрипт — ospp.vbs. Его можно найти поиском в каталоге установки Office (в случае Office 2016 файл ospp.vbs находится по-умолчанию в каталоге
\Program Files\Microsoft Office\Office16
).
Чтобы вручную указать адрес KMS сервера на клиенте Office:
cscript ospp.vbs /sethst: msk-man02.winitpro.ru
Изменить порт для активации:
cscript ospp.vbs /setprt:1689
Активировать вашу копию Office на KMS сервере:
cscript ospp.vbs /act
Текущий статус активации Office 2019/2016/365 можно получить с помощью команды:
cscript ospp.vbs /dstatusall
VAMT: Управление корпоративными ключами
Для удобства управления KMS серверами и ключами можно установить специальную утилиту Volume Activation Management Tool (VAMT).
- Утилита VAMT не является частью поставки ОС, входит в состав пакета Windows Assessment and Deployment Kit (ADK) и устанавливается отдельно;
- Для работы VAMT требуется .NET Framework;
- В качестве БД VAMT используется SQL Server Express;
- Последняя доступная версия VAMT поддерживает все ОС Microsoft, включая Windows 10 и Windows Server 2019.
Распространённые ошибки при использовании KMS сервера активации
- Установка корпоративного ключа KMS (CSVLK ключа) на клиентах вместо общедоступного GVLK ключа;
- Общий KMS ключ (CSVLK) не соответствует версии ОС на активируемом хосте;
- Сервер KMS должен быть обновлён для поддержки активации последних версий продуктов Microsoft;
- Если при попытке активации появляется ошибка 0xC004F074 – причиной может быть отсутствие SRV записи
_VLMCS._tcp.winitpro.ru
в DNS. Ее можно создать вручную или указать адрес KMS сервера вручную (команда указана ниже); - Ошибка 0xC004F038 говорит о том, что в вашей сети не набралось необходимого количества клиентов для активации (см. информацию о пороге активации выше). Как только на KMS сервер поступит достаточное количество запросов активации, она начнет выполнять активацию клиентов;
- Проверьте доступность порта 1688 на KMS сервере с помощью командлета Test-NetConnection:
TNC msk-mankms -Port 1688 -InformationLevel Quiet
Если порт недоступен, возможно доступ блокируется файерволом, или на KMS сервере не запущена служба Software Protection (sppsvc); - Для получения более подробной информации о конкретной ошибке активации Windows используете команду:
slui.exe 0x2a ErrorCode
- Также см. статью — «Список распространенных ошибок активации Windows«.
Slmgr, which stands for Software Licensing Manager, is a Windows command-line tool used to manage Windows activation and licensing tasks. You can use the slmgr
command to check license status, activate Windows, and install or uninstall license keys.
- Command Options.
- View Your Windows License Information.
- Check Your Windows License Expiration Date.
- Extend the Evaluation Period for Windows.
- Manually Activate Windows with /ato.
- Adding and Removing Windows Keys.
- Managing KMS Activation.
Command Options
/dli |
Display the information on the current license with activation status. |
/dlv |
Work like /dli but provide more information about the license. |
/rearm |
Extends the trial period of Windows. |
/xpr |
Display the expiration date of the Windows license. |
/ato |
Attempts to activate the Windows using the product key that is currently installed on the system. |
/ipk <product_key> |
Installs a new product key. |
/upk |
Uninstall the product key. |
/cpky |
Removes the product key from the Windows registry. |
/skms <ServerName> |
Specifies the KMS server that your computer will contact for activation. |
/skmsport <PortNumber> |
Specifies the port number that your computer will use to connect to the KMS server. The default port is 1688. |
/ckms |
Removes details of the previously configured KMS Server and sets the port to default. |
When you run the slmgr
command without any parameters, it displays the command syntax and available options.
Examples
This section provides examples of the slmgr
commands. Open a Command Prompt or PowerShell with administrative privileges and then run the commands according to your requirements. Improper use of these commands can lead to licensing problems.
How to View Your Windows License Information
You can use the following command to display the current license information, including activation status and a partial product key:
slmgr /dli
Your Windows license information will be displayed through a dedicated window.
Enter the following command to display more detailed information about the current license:
slmgr /dlv
How to Use slmgr to Check Windows License Expiration
You can find the expiration date of your current Windows license by entering the following command:
slmgr /xpr
Running the command on my Windows 10 PC resulted in the following message, indicating that Windows is permanently activated.
The expiration date was displayed on a Windows Server 2022 machine using an evaluation license.
Extend the Evaluation Period for Windows
If your Windows trial period ends, you can use the /rearm
command to extend the trial:
slmgr /rearm
Normally, the Windows Server trial period lasts 180 days for Standard and Datacenter editions. Rearming it for the first time adds another 180 days. Subsequent rearms add 90 days each, allowing for a total trial period of up to 540 days (this may vary depending on the Windows version).
Manually Activate Windows with /ato
If your product key is not activated, you can run the following command to activate it:
slmgr /ato
Windows usually activates automatically during installation or when a valid product key is entered. However, if activation fails for some reason, you can use the /ato
command to manually attempt activation with the current product key.
Adding and Removing Windows License Keys
Use the /ipk
option to enter a new product key or update the existing one. In the following example, ABCDEF-12345-ABCDEF-12345-ABCDEF
is the product key being entered:
slmgr /ipk ABCDEF-12345-ABCDEF-12345-ABCDEF
To remove a product key, run the following two commands:
slmgr /upk
slmgr /cpky
The first command uninstalls the product key, while the second command clears the registry of any remaining key information.
Managing KMS Activation with slmgr Commands
By default, Windows clients automatically attempt to discover KMS servers on a Windows network. However, using the /skms
option overrides this behavior and forces the client to connect to a specific KMS host.
The following example sets the KMS host server to kms.example.local
and specifies the port as 1688
(the port number is optional, with 1688
being the default port):
slmgr /skms kms.example.local:1688
To clear the configured KMS server and port settings, enter the following command:
slmgr /ckms
That brings us to the end of this article on using the slmgr
command to manage Windows licensing and activation. We’ve covered everything from viewing license information to installing keys using various command options.