Activate Windows Server 2019 with KMS or the command line | TechTarget (2024)

Tutorial

Running the Software License Manager from the command line or using Key Management Services for automatic activation can sidestep one hurdle to get going with Windows Server 2019.

Microsoft added a wide range of cloud-based features to Windows Server 2019, but the first step to the cloud can trip up admins who encounter activation problems with the server OS.

Windows Server 2019 requires license activation after 180 days, otherwise the system will shut down. With multiple server workloads, it's not efficient to log in to each machine and manually activate them. There are also times when entering a valid key from the Volume Licensing Service Center (VLSC) will not work. Errors and key rejection can happen, often for no apparent reason. To avoid frustration with the server GUI, it's beneficial to learn how to activate the Windows Server 2019 license through alternative methods such as the command line or Key Management Services (KMS).

Why use Windows Server 2019?

A switch to Windows Server 2022 might be a bit premature for many organizations who might prefer a more battle-tested server OS, while Windows Server 2016 might lack the more advanced functionality sought by some companies.

Windows Server 2019 offers important enhancements and a few years of updates that should placate even the wariest of admins who prefer stability over cutting-edge features. Some advantages in Windows Server 2019 over Windows Server 2016 include:

  • a unified management center for both networking and ecosystem monitoring;
  • scalable, expanded storage up to 64 TB, plus replication for disaster recovery;
  • better performance in Storage Space Direct -- up to two times faster according to Microsoft -- through improvements in mirror-accelerated parity; and
  • cloud-based file witness sharing.

Perhaps most fundamentally, Windows Server 2016 was not built for hybrid environments, making data management trickier for admins.

Windows Server 2019 also bakes in two modern technologies: AI and IoT support. Windows Server 2019 uses artificial intelligence for smarter predictions based on analytics. Microsoft added this feature to help admins lower operating costs. Devices on connected IoT platforms, such as servers and machines, can seamlessly share and back up data.

Microsoft updated Server 2019's security features, added better support for Linux VMs, tweaked subsystem containers for easier development and updated its Remote Desktop Services functionality. This newest version also integrates with Windows Admin Center.

But the key to unlocking all this functionality is to activate Windows Server 2019 to avoid disruptions after deployment.

Activation via the command line and Software License Manager

Tapping into the elevated command line is a reliable way to access the Software License Manager (SLMGR), also called the Windows Software Licensing Management Tool. Interacting directly with SLMGR handles activation and access to license information.

There are some potential issues that come with working via the command line. Accidental commands will typically generate an error message, but it's possible to harm the environment. Certain SLMGR parameters can also alter registry information. Double-check the command before execution to avoid problems.

This SLMGR uses parameters to deliver specific instructions. The parameters act like extensions and use the following format: slmgr /[parameter].

The SLMGR parameters fetch licensing information, alter licensing information and execute activation for Windows Server 2019.

Here are some common SLMGR parameters:

  • /dli: displays basic license and activation information;
  • /dlv: displays detailed license and activation information;
  • /xpr: displays the expiration date of an installed license;
  • /upk: uninstalls the existing license key;
  • /cpky: removes license key information from the registry;
  • /ipk [XXXXX-XXXXX-XXXXX-XXXXX-XXXXX]: changes the 25-digit license key or tries to activate the license if the provided key does not currently; and
  • /ato: forces immediate online activation, which is especially useful when KMS servers or Microsoft's VLSC online activation servers aren't reachable.

The primary extension used with activating Windows Server 2019 is /ipk, often used if there are issues using the VLSC.

Activate Windows Server 2019 with the command line

The following example command activates a license key. Navigate to the system32 folder from the command line, replace the X's with the 25-digit license key and press Enter to execute the command:

slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

A pop-up dialog box will show if the operation failed or succeeded. Microsoft recommends a server restart after a successful activation attempt. After a reboot, Server Manager will show the activated server.

If a server is missing from Server Manager, there might be an activation error. Open the command line and enter the slmgr /ato command. A Windows Script Host pop-up will display an error message that explains why the Multiple Activation Key was invalid. Either use another activation key or contact Microsoft for support.

KMS is an alternative activation method

Another way to handle VLSC activation is to use KMS, a client-server model for volume activation.

KMS clients connect to a KMS server, also called the KMS host, on the network for activation. A KMS host can be a VM or physical machine. To activate a computer running Windows Server 2019, the KMS host must use one of the following OSes: Windows Server 2012 R2, Windows Server 2016 or Windows Server 2019.

How to find and use the KMS Host license key

To set up a KMS host requires obtaining the KMS Host key. Use the following steps to activate the KMS host:

  1. From the VLSC website, navigate to License > Relationship Summary > Click Current Active License ID > Product Keys and copy the Windows Srv 2019 DataCtr/Std KMSfrom the keys list.
  2. Open the command prompt, typeslmgr /ipk followed by the 25-digit KMS host product keyand pressEnter. Then, use slmgr /ato to activate the host key.

The server also needs the Volume Activation Services server role installed either from Server Manager or via this PowerShell command:

Install-WindowsFeature -Name VolumeActivation -IncludeManagementTools

The KMS host should then announce its presence on the network for KMS clients, such as a Windows Server 2019 machine. The KMS client should activate automatically, which remains valid for 180 days until it renews the activation via the KMS host.

Dig Deeper on Windows Server OS and management

  • AWS Key Management Service (AWS KMS)By: RahulAwati
  • Cohesity's 7.0 update adds protections against rogue adminsBy: TimMcCarthy
  • Enable vSAN data-at-rest encryption for extra VM securityBy: VladanSeget
  • SEC sanctions financial firms for cybersecurity failuresBy: ArielleWaldman
Activate Windows Server 2019 with KMS or the command line | TechTarget (2024)

FAQs

How to activate Windows Server 2019 command line KMS? ›

Open the command prompt, type slmgr /ipk followed by the 25-digit KMS host product key and press Enter. Then, use slmgr /ato to activate the host key.

How do I activate Windows 2019 server? ›

Now you can activate with your own original key. “slmgr /ipk YourOwnProductKEY” press enter. When you complete the activation with the “slmgr /ato” command and reboot, the activation will be completed.

What is the command to activate Windows Server 2019 evaluation? ›

here are the steps to activate your Windows Server:
  1. Open the Command Prompt as an administrator.
  2. Type the following command and press Enter: slmgr.vbs /ipk <product key> ...
  3. Wait for the confirmation message to appear.
  4. Type the following command and press Enter: slmgr.vbs /ato.
  5. Wait for the confirmation message to appear.
Dec 29, 2023

How do I activate Office 2019 with KMS? ›

Run these commands in Command Prompt as administrator:
  1. For Office 2016, 2019, 2022: cd "c:\Program Files\Microsoft Office\Office16" ...
  2. Manually specify the KMS server name: cscript ospp.vbs /sethst:kms01.yourdomain.com. ...
  3. Activate your Office copy on the KMS server: cscript ospp.vbs /act.
Feb 1, 2024

How to activate Windows via KMS command line? ›

Activate a Windows Operating System (All Supported Versions)

In the elevated Command Prompt window, verify that the current directory is C:\Windows\System32. If it is not, type CD \Windows\System32 and press Enter. Type the following command: cscript slmgr. vbs /skms kms01.cit.cornell.edu and press Enter.

How to activate Windows using KMS command? ›

To activate KMS on a client version of Windows, follow these steps:
  1. Open an elevated Command Prompt window.
  2. In the elevated Command Prompt window, run the following command to install the KMS key: cscript.exe slmgr.vbs /ipk <KMS_Key>
Mar 29, 2024

What happens if Windows Server 2019 is not activated? ›

If Windows Server 2019 is not activated, it will continue to function normally for a grace period of 180 days. After the grace period expires, the server will enter into a reduced functionality mode, which means that some features will be disabled, and the server will only be able to perform basic functions.

How to activate Windows Server 2019 license without internet? ›

You can try the following steps to complete phone activation:
  1. Open the Start menu, then type "Slui.exe 4" in the search bar and press Enter. ...
  2. Select your country or region and click Next.
  3. Call the phone number provided and follow the voice prompts.
  4. Enter your installation ID when prompted to enter it.
Nov 15, 2023

How to activate Windows using Slmgr command? ›

What to Know
  1. Open Command Prompt and enter the desired slmgr command.
  2. Check activation status: slmgr /xpr. View license info: slmgr /dlv. Reset timers: slmgr /rearm.
  3. Several other slmgr commands also exist. Use a similar format for those.
Jun 14, 2023

Where is the KMS host key? ›

Replies (1) 
  1. Log in to the Microsoft Volume Licensing Service Center (VLSC) website: https://www.microsoft.com/licensing/servicecenter.
  2. Click the License tab and select your license.
  3. Click the Keys tab, and then look for the KMS key.
  4. If you cannot find your KMS key in the VLSC, contact your MS reseller.
Aug 25, 2023

How to check if Windows server is activated using CMD? ›

Open PowerShell or the Command Prompt and type in: slmgr /xpr to see your activation status. Press Enter.

What is the standard activation key for Microsoft Windows Server 2019? ›

Windows Server LTSC
Operating system editionKMS Client Product Key
Windows Server 2019 DatacenterWMDGN-G9PQG-XVVXX-R3X43-63DFG
Windows Server 2019 StandardN69G4-B89J2-4G8F4-WWYCC-J464C
Windows Server 2019 EssentialsWVDHN-86M7X-466P6-VHXV7-YY726
Apr 5, 2024

How do I activate my Microsoft Office 2019? ›

Go to Microsoft's website and sign in with your account. Look for “My Account” or “Services & subscriptions”. Click on the “Activate” button for Office. On the activation page, choose “Activate without a product key”.

Is KMS activator legal? ›

Activation servers (KMS) through an organization or educational institution is legal, and should be used for those intents and purposes.

What is KMS activation? ›

KMS (Key Management Service) is one of the methods to activate Microsoft Windows and Microsoft Office. Activation ensures that the software is obtained from and licensed by Microsoft.

What is KMS activator? ›

KMS (Key Management System) allows client computers to automatically activate Microsoft products without user intervention.

How to show KMS server command line? ›

To find your KMS server, you can follow these steps:
  1. Open the command prompt on your computer.
  2. Type "nslookup -type=all _vlmcs. _tcp" and press Enter.
  3. Look for the "Name" and "Address" fields in the output. The "Name" field will contain the hostname of your KMS server and the "Address" field will contain its IP address.
Apr 15, 2023

Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 5434

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.