Table of Contents
Own KMS server allows you to significantly simplify the process of activating Microsoft products on the corporate network and in contrast to a usual the activation process doesn’t require granting each computer an access to the Internet to Microsoft activation servers. K MS infrastructure is rather simple, reliable and easily scalable (a single KMS server can serve thousands of clients).
In this article, we describe how to install and activate the KMS server on Windows Server on the local corporate network.
This article will tell you how to edit the startup parameters of services in Windows using the example of the 1C:Enterprise 8.3 Server Agent service. It will show you how to configure the startup type of services, change the credentials to start the service, and change the startup parameters of the service executable.
Table of contents
Suppose we have a running service, let it be “Server Agent 1C: Enterprise 8”. In order to edit the startup properties of this service, go to the Services snap-in.
In Microsoft Windows Server 2012, this snap-in can be found in the Server Manager, menu item “Tools” – “Services” (Services).
Well, or in any version of Windows, you can run the services.msc command. To do this, press the key combination Win + R, in the Run window that opens, enter the name of the command in the Open field and click OK.
Next, in the snap-in that opens, in the list of services, we find the service whose launch parameters need to be edited.
Double click on the service name to open its properties. In the service properties window, you can edit the following service startup parameters.
On the General tab, you can configure the Startup type of the service – Automatic (Automatic), Manual (Manual), Disabled (Disabled) or Automatic (Delayed Start) (Automatic (Delayed Start)), choosing the appropriate option from the list. It is also possible to Stop (Stop), Suspend (Pause) or Start (Start) this service.
On the “Log on” tab, you can configure the parameters of the account (account) from which the selected service will be launched. It is possible to configure the launch from the system account (Local System account), or select a specific Windows user by entering his name and password.
On the Recovery tab, you can set the actions that the system will perform when a service fails.
On the “Dependencies” tab, you can configure the dependency of the service startup on various system components.
Changing the startup parameters of the service executable
In the service properties window, on the General tab, you can view the path to the service executable file, as well as see the parameters passed to run it.
However, this information is read-only. You can change the startup string of the service executable using the Windows system registry.
To launch the system registry, run the regedit.exe command. To do this, press the key combination Win + R, in the Run window that opens, enter the name of the command in the Open field and click OK.
First of all, when working with the Windows registry, you need to make a backup by exporting the entire registry.
After that, in the folder tree on the left, follow the path:
Then, in the list, select the group with the name of the service whose properties need to be edited. At the same time, in the window on the right we will see all the parameters of this service.
Click twice on the name of the parameter to be changed and enter a new value.
For example, let’s say we need to start the 1C:Enterprise server in debug mode, that is, add the -debug parameter to the launch line. To do this, change the value of the ImagePath parameter.
Click “OK” to save the changes and close the registry editor.
Restart the service for the changes to take effect. You can also do this from the Services snap-in by right-clicking on the service name in the list and selecting Restart from the context menu.
That’s all. The changes have taken effect, so the server agent is running in debug mode.
To activate your KMS server on Microsoft servers on the Internet, run the command: slmgr /ato (You need to temporarily grant direct Internet access to your server). If necessary, you can optionally install a volume license package for your version of Office to activate copies of offices on your corporate network.
Set up KMS Host
How to force KMS activation?
Run KMS commands on the command line.
How to open KMS console?
KMS client installation key
https://youtube.com/watch?v=uku1qHcb2hM
Is KMS activation safe?
KMS is completely legal. Microsoft has Volume Licensing, and corporations and even home users can purchase Volume Licensing. So of course they know you are using it.
How to restart the KMS service?
Restart the Software Protection Service by running restart-service sppsvc in an elevated PowerShell console (or net stop sppsvc && net start sppsvc if PowerShell is not available). Start slmgr. vbs/dli to get the number of activated KMS clients.
Is Microsoft releasing Windows 11?
Microsoft’s next generation desktop operating system, Windows 11, is already available in beta and will be released on Holiday 2021 (although perhaps not for updates). Over the next few months, Windows Insiders will be able to try out all the new features and watch the platform evolve.
https://youtube.com/watch?v=xNXYorZ6bjk
How can I get Windows 10 free forever?
More videos on YouTube
What is a Windows KMS key?
A KMS key is used to activate a KMS host using a Microsoft activation server and can activate up to six KMS hosts with 10 activations per host. Each KMS host can activate an unlimited number of computers.
How do I know if KMS is working?
Slmgr. vbs and Software Licensing Service
How to use the KMS activator?
Activating KMS manually
https://youtube.com/watch?v=PC2vOCHf6HA
Can’t find KMS server?
How can I fix problems with KMS activation?
Are there motion sensors?
Are cheap studio monitors worth it?
Are there baby carriages?
Are expensive non-stick pans worth it?
Are dual GPUs worth it?
Are electric bikes worth it?
Are winter tires worth it?
Are PCIe WiFi cards worth it?
Are wheelchairs worth it?
Are PC controllers worth it?
In this example, we are using CentOS 8 to install KMS server, but you can use other OS like Ubuntu, Debian, RHEL or even your NAS (there are examples of successful installation on Synology NAS server).
Connect to your Linux server and use the yum (dnf) package manager to install the git and gcc packages:
# dnf update
# dnf install git gcc
Now copy and install the vlmcsd package:
# git clone https://github.com/Wind4/vlmcsd
# cd vlmcsd
#make
Change to the bin directory:
# cd bin
Start KMS server:
A message should appear:
This means that you have successfully compiled and launched the KMS server on Linux.
By default, vlmcsd listens on the standard KMS port, TCP/1688. Therefore, you need to open a port in the Linux firewall to allow clients to connect to it. For firewalld, run the following commands:
# firewall-cmd –zone=public –permanent –add-port=1688/tcp
# firewall-cmd –reload
Check that port 1688 is open:
In order not to start vlmcsd manually, you can create your own daemon that can be controlled through systemd.
#cp vlmcsd /usr/bin
# cp vlmcs /usr/bin
# touch /etc/systemd/system/kms-script.service
# chmod 664 /etc/systemd/system/kms-script.service
# nano /etc/systemd/system/kms-script.service
Add the following service description to the file:
It remains to start the KMS service and add it to startup:
# systemctl daemon-reload
# systemctl start kms-script.service
# systemctl status kms-script.service
# systemctl enable kms-script.service
Advanced KMS server settings can be set using the vlmcsd.ini file (there is a sample in the ./vlmcsd/etc/ directory. You can also set the path to the file with KMS server logs (vlmcsd.log) there. You can specify the paths to files in arguments to start vlmcsd using parameters:
-i /etc/vlmcsd.ini
-l /var/log/vlmcsd.log
If you use Microsoft DNS, you can create a _VLMCS record to automatically search for a KMS server by clients in the domain. To create an entry in DNS, use the following PowerShell command:
Add-DnsServerResourceRecord -Srv -Name “_VLMCS._tcp” -ZoneName “winitpro.ri” -DomainName “192.168.14.147” -Priority 0 -Weight 0 -Port 1688
Where 192.168.14.147 is the IP address of your Linux server with KMS service.
Now all Windows (and Office) hosts in the domain will be automatically activated on the KMS server if they have a Public Volume Activation Key (GVLK) installed on them. A complete list of GVLK (Generic Volume License Keys) activation keys for all available versions of Windows is available on the Microsoft website https://docs.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys.
For example, on this page, find GVLK keys to activate Windows Server 2022 Standard (VDYBN-27WPP-V4HQT-9VMD4-VMK7H) and Windows 10 Pro (W269N-WFGWX-YVC9B-4J6C9-T83GX).
To manually activate Windows, you need to specify the GVLK key for your version of Windows, the address of the activation KMS server, and execute the activation command. The following commands are used (for example, for Windows Server 2022 Std):
slmgr.vbs -ipk VDYBN-27WPP-V4HQT-9VMD4-VMK7H
slmgr.vbs -skms 192.168.14.147
slmgr.vbs -ato
After you run the last command, Product activated successfully will appear. This means your copy of Windows has been successfully activated.
You can check the activation status of Windows with the command:
slmgr.vbs -dlv
In my example, when activating Windows Server, an error appeared:
Error: 0xC004F069 On a computer running Microsoft Windows non-core edition, run ‘slui.exe 0x2a 0xC004F069’ to display the error text.
The reason is that I have an Evaluation version of Windows Server 2022 installed. First you need to convert it to the full Standard version according to the article:
dism /online /set-edition:serverstandard /productkey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /accepteula
And only after that you can activate Windows.
Similarly, you can activate corporate versions of Microsoft Office 2019/2016/2013 on the KMS server. For this, the following commands are used:
cd C:Program FilesMicrosoft OfficeOffice16
cscript ospp.vbs /sethst:192.168.14.147
cscript ospp.vbs /act
You can check the activation status of Office like this:
cscript ospp.vbs /dstatusall
Git files saved locally (for insurance) in install/kms
Keys just in case from here
Windows 10 Home is one of the most popular and affordable operating systems for home users. It has many features that provide convenience, security and productivity on your computer. However, to take full advantage of all the features of Windows 10 Home Edition, you need to activate it with a license key. There are several ways to do this. In this article, we’ll take a look at how to activate Windows 10 Home using the KMS Key Management Service client, and look at the pros and cons of this method.
How to activate Windows 10?
A license key is a unique code that confirms the user’s right to use a particular version of Windows. Without activation, the system will work in a limited mode, and a watermark will appear on the desktop with a reminder of activation. In addition, the user will not be able to receive updates and technical support from Microsoft.
There are several ways to activate Windows 10 Home Edition:
Advantages and disadvantages of activating Windows using KMS
Benefits of using KMS Key Management Client to activate Windows 10:
The disadvantages of using KMS Key Management Client to activate Windows 10 are as follows
Follow these steps to activate Windows on your computer:
You have now successfully activated Windows 10 Home using the KMS Key Management Service client. However, do not forget that this activation method is illegal and does not guarantee the stability and security of the system. If you want to be sure of the quality and support of your copy of Windows, we recommend that you purchase a license key or digital license from the official Microsoft store or from Microsoft partners.
The process of activating Windows 10 using the KMS Key Management Service Client is shown in this video.
Windows 10 activation from KMS has failed
If you activated Windows 10 using the KMS Key Management Service client, then you should be prepared for the fact that activation can fail at any time. This can happen for various reasons, for example:
In any of these cases, you may notice that a watermark has appeared on the desktop saying “Activate Windows. Go to settings to activate Windows”. In addition, you will not be able to receive updates and technical support from Microsoft.
Generic Volume License Keys (GVLK)
See the Windows lifecycle fact sheet for information about supported versions and end of service dates.
Windows 10 (LTSC/LTSB versions)
Now the configuration is over. Verify that a special DNS record pointing to your KMS server was created:
Remember that a KMS server has so called activation threshold counter. It means that an activated KMS server starts to activate clients only when the number of clients that addressed it in the last 30 days exceeds the pre-defined thresholds:
Key Management Service is enabled on this machine
current count: 1
Listening on Port: 1688
DNS publishing enabled
KMS priority: Normal
Key Management Service cumulative requests received from clients
Total requests received: 1
Failed requests received: 0
Requests with License Status Unlicensed: 0
Requests with License Status Licensed: 1
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: 0
Key Management Service is enabled on this machine
current count: 50
Listening on Port: 1688
DNS publishing enabled
KMS priority: Normal
Key Management Service cumulative requests received from clients
Total requests received: 194
Failed requests received: 9
Requests with License Status Unlicensed: 0
Requests with License Status Licensed: 35
Requests with License Status Initial grace period: 149
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: 1
Now the KMS server can activate clients. To successfully activate your systems on the KMS server, you need to perform a number of actions on the client side:
1. Specify the public KMS GVLK key from the corresponding edition of Windows on the client.
slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx–xxxxx
slmgr /skms kms1.bonguides.com:1688
3. Activate the OS with the command:
For example, activate a Windows 10 Pro client using the KMS server:
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms kms1.bonguides.com:1688
slmgr /ato
cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx–xxxxx
cscript ospp.vbs /sethst:kms1.bonguides.com:1688
cscript ospp.vbs /act
The KMS server that is activated with the KMS host key for Windows Server 2019 supports the activation of all Windows operating systems up to Windows 11 / Windows Server 2022.
Install and Configure the Volume Activation Services Role
KMS requires installation and configuration of a separate server role – Volume Activation Services. You can install this role using the Server Manager console or PowerShell:
Install-WindowsFeature -Name VolumeActivation -IncludeAllSubFeature -IncludeManagementTools
If you are going to install a role through the graphical interface of the Server Manager console, run the Add Roles and Features Wizard, and in the Server Roles selection step, select Volume Activation Services.
After the installation is complete, start Volume Activation Tools console. The activation service installation wizard will start. Specify that you are going to install Key Management Service (KMS) server.
Note: In domain environment, you can use the Active Directory Based Activation mode to activate computers in AD automatically.
Next you need to obtain your corporate KMS key (KMS host key – this is the KMS server activation key). Usually, when you bought license from Microsoft, you can request them to get the KMS host key then insert the key into the KMS server.
If the system accepts the key, you will immediately be prompted to activate it. Based on the entered key, the system will determine the product to which it applies, and will offer two options for activation (by phone or Internet). In the second case, you will have to give the server temporary access to the Internet (only for the activation time).
After the key is activated, you have to configure Key Management Service options: activation and renewal intervals (by default, the clients will renew the activation every 7 days), port (by default, KMS listens on port 1688) and Windows Firewall exceptions. To automatically create a DNS record necessary to automatically search a KMS server in the domain (SRV record _vlmcs._tcp), check the option DNS Records – Publish.
If the KMS server is designed to serve clients from different domains, you can publish DNS records in other DNS zones. Specify the zone names in the Publish to Custom DNS zones list.
If you have Windows Firewall enabled, make sure that the rule that allows incoming connections to port 1688 is active. If there is no active rule, enable it via PowerShell:
Get-NetFirewallRule -DisplayName *key*
Enable-NetFirewallRule -Name SPPSVC-In-TCP