- Updating the system before activation avoids common errors
- Converting a trial version is a prerequisite for activation
- There are multiple activation methods: product, KMS, or slmgr scripts.
- Verifying activation with slmgr helps confirm results and errors

Correctly activate and validate a license in Windows Server is a critical step in ensuring the stable and legal operation of any production server. Whether you're using Windows Server 2019, 2022, or newer versions, there are several methods and tools to carry out this process safely and effectively. From using commands From command line to system configuration settings, this article covers everything you need to know to manage Windows Server licenses like a pro.
In this article, we explain step-by-step how to activate a Windows Server from scratch in evaluation mode or standard installation, either with a product key, activation via KMS (Key Management Services), or using specific scripts like slmgr. We also cover the most common problems during the process and how to resolve them to ensure your server is operational with its license properly validated.
Prerequisites before activating Windows Server
Before attempting to activate a Windows license Server & Hosting, it is essential that the system is properly updated. Activation errors often stem from missing critical updates of the operating system. Therefore, the first step should always be to install all available patches by running Windows Update.
Another important aspect is to know the current status of the systemIf your Windows Server is in Evaluation mode, you'll need to convert it to a full edition like Standard or Datacenter first. This is where commands like DISM /online /Set-Edition, which transform the edition of the operating system.
You must also have a valid product key.Depending on the vendor, this key can be obtained from the customer portal (for example, on sites like Uniq Software or LicensePro) or by requesting it directly from technical support if you're using platforms like Oasix. For more information on how to obtain a license key, see this article on Get license keys for Windows.
How to convert Windows Server Evaluation to a full edition
If you're using a trial version like "Windows Server Standard Evaluation," you won't be able to activate the license without first converting to a valid edition. To do this:
- Opens PowerShell o CMD as administrator. This is essential to run commands with the necessary permissions.
- Run the command that corresponds to the desired edition:
DISM /Online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
This process can take from several minutes to several hours.. Once completed, restart the server.
This step transforms the operating system, allowing it to activate normally with the provided key.
Activation with product key (IPK + ATO)
Once your system has been converted to a full edition, the next step is to install your product key using the command:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
This command registers the license key on the systemIf no errors are returned, you can continue with the next step, which is to activate the license online:
slmgr / ato
This process connects your server directly to Microsoft's validation servers.If all goes well, you'll receive a message indicating that Windows has been successfully activated.
To check the activation status, you can run the command:
slmgr / dlv
This command displays a detailed summary of the current license status, including whether it is activated, expiration date, license type, and more.
Activation via KMS (Key Management Service) server
In enterprise environments, activation is often performed using a KMS server. This method is useful when there are multiple servers that require activation, as it allows volume keys to be managed from a single server. central point.
To activate against a KMS, follow these steps:
- Open CMD or PowerShell as administrator.
- Configure the KMS server by running:
slmgr.vbs /skms kms.domain.com:1688
Replace "kms.domain.com" with the actual address of your KMS server. Some real-life examples include kms.oasixcloud.es o kms.infomaniak.cloud.
Then run:
slmgr.vbs / ato
This step performs online activation via the specified KMS serverIt's important that the server has access to an external network, although it's not necessary to open additional ports if it already has an Internet connection.
Troubleshooting common errors during activation
There are several reasons why activation might fail:
- Incorrect or misspelled password: Check that the password is entered correctly. Passwords are entered with hyphens and consist of five blocks.
- License not valid for the installed edition: A key for Windows Server Standard will not work in a Datacenter edition.
- Missing system updatesWithout the latest patches, activation may fail. Make sure your system is up to date.
- Network problems towards the KMS serverIf you can't reach the KMS server, make sure your server is online and can resolve external domains.
In any case, you can always run:
slmgr / dlv
to identify exactly what error occurred and act accordingly.
How to delete and reinstall keys if there is a conflict
In some scenarios it may be necessary delete the current key before attempting to install a new one. For example, if a generic evaluation key has been used, or if the current key has expired.
This can be done with the following command:
cscript.exe c:\windows\system32\slmgr.vbs -upk
You can then install the new key with:
cscript.exe c:\windows\system32\slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
And activate with the corresponding server:
cscript.exe c:\windows\system32\slmgr.vbs -skms kms.infomaniak.cloud cscript.exe c:\windows\system32\slmgr.vbs -ato
You can also use alternative commands to view full license status details:
slmgr / xpr
This command will tell you whether the license is permanent or about to expire. If you want to avoid activation-related issues, you can find methods to use Windows without activating the system.
With so many ways to activate and validate a Windows Server, it's easy to get confused by the options. By knowing the proper steps—from converting the edition, choosing the activation method, correctly installing the key, and understanding the license statuses—you can leave any server fully operational without relying on third-party software or dubious licenses. Proper activation not only ensures legal compliance but also unlocks all system features without interruption.
Passionate writer about the world of bytes and technology in general. I love sharing my knowledge through writing, and that's what I'll do on this blog, show you all the most interesting things about gadgets, software, hardware, tech trends, and more. My goal is to help you navigate the digital world in a simple and entertaining way.
