Table of Contents
Windows Server is a specialized operating system designed exclusively for servers. In this post, I’ll show you on how to activate Windows on your VPS or dedicated server for free using KMS client product keys. You can renew it anytime you want, though the license automatically renews every 7 days by default. This way, you only need to set it up once and never worry about it again.
Before you begin
- If you’re using an evaluation edition of Windows Server. Let’s follow this post to convert then activate it to the licensed version.
- The methods are compatible with all Windows Server editions and versions starting from 1809.
- A KMS license is valid for 180 days, but it will automatically renew before the expiration date as long as you’re online. You can also manually renew it anytime, even after it has expired, by running the activation command or script again.
Method 1: Manual activation
The first way, we can use the Windows Command Prompt (CMD) to activate the Windows Server 2025 Datacenter license free forever.
1. Click on the search icon, type cmd in the Windows search box, right click on the best match Command Prompt then select Run as administrator.
2. Copy and right click to paste all below commands into CMD window at once then hit .
cscript //nologo %windir%\system32\slmgr.vbs /ipk D764K-2NDRG-47T6Q-P8T8W-YP6DF
cscript //nologo %windir%\system32\slmgr.vbs /skms kms.msgang.com
cscript //nologo %windir%\system32\slmgr.vbs /ato
3. Your Windows Server 2025 Datacenter is activated using a KMS key. It’ll reactivate after every 7 days automatically. So, your Windows is permanently activated.
4. Finally, check activation status of your Windows Server again. Open Windows Settings then check Windows Activation.
Method 2: Using PowerShell script
The recommended method is to use Windows PowerShell to activate the Windows Server 2025 Datacenter license permanently without the need for any software or activation tools. This method offers several advantages, such as:
- There is no need to disable the Real-time Protection in Windows Security Center, as we do not use any crack tools to activate Windows.
- The methods work seamlessly with all versions of Windows, including Windows Server.
- The script works on both Windows 64-bit and Windows 32-bit systems.
- You don’t need to worry about which Windows edition you’re using. The script automatically detects your Windows edition and activates it for you.
- A KMS license is valid for 180 days; however, it will be renewed automatically before the expiration date if you are online.
- It is not necessary to download any files to your computer to activate the Windows license.
1. Right-click on the Windows Start icon, then select Windows PowerShell (Admin) to open an elevated PowerShell window.
2. Just copy and paste the command below into the open PowerShell window and hit .
irm win.msgang.com | iex
3. Please wait a few seconds, and your copy of Windows Server 2025 Datacenter will be activated automatically.
Method 3: Activate Windows using batch script (CMD)
The last method is to use a batch script to activate your Windows license. This way, you don’t have to type out the PowerShell command every time and making the process faster and more convenient.
1. Create a batch script by creating a new text document. You can use Notepad or any text editor available on your Windows to create and edit the file.
2. Copy then paste all below commands to the newly created text file.
@echo off
powershell -NoProfile -Command "irm win.msgang.com | iex"
3. Next, save your text file with the .bat file extension by:
- Navigating to the File menu.
- Select Save As...(Ctrl + Shift + S) option from the drop-down menu.
4. In the Save As window:
- Change Save as type to All Files.
- Then type a filename with .bat as the file extension.
5. Finally, right-click on the batch file you just created, then select Run as administrator to execute the script with elevated permissions.
The script runs automatically, and if everything works correctly, you’ll see the screenshot below confirming that Windows has been activated. Make sure you’re connected to the internet while running it.
If you don’t want to create the batch script yourself, just click the button below to download it.
Conclusion
Hello Friends! My name is Leo, and I’m excited to share everything I know about activating Microsoft software products. In the past, I managed several YouTube channels on this topic, but they were taken down by Microsoft. That’s why I decided to start this blog to keep the conversation alive without interruptions. I’m committed to sharing my knowledge and insights for as long as possible!
If you have any questions or concerns, feel free to leave a comment or visit my Discord server. I’d be happy to provide more details. Thank you so much for your feedback and support!
Want to activate others Microsoft products for free? You can follow the below posts:
Not a reader? Watch this related video tutorial: