Activate Windows 11 All Editions for FREE using KMS Client Key with a Batch Script – Windows 11 has become one of the most advanced and user-friendly operating systems released by Microsoft. However, activating it legally can sometimes be challenging for users who don’t have a product key. While Microsoft provides KMS (Key Management Service) activation methods for enterprise environments, many users can legally use KMS client keys for temporary activation purposes.
In this comprehensive guide, we’ll explore how to activate any edition of Windows 11 for free using a KMS client key and a batch script — all without needing any third-party software or cracks. This method is 100% script-based and transparent, giving you peace of mind.
Disclaimer: This guide is intended for educational purposes only. KMS activation is intended for volume license users. Personal or unauthorized use of KMS servers may violate Microsoft’s EULA. Use this method responsibly and only if you’re allowed to under your licensing agreement.
What is KMS Activation?
KMS (Key Management Service) is a legitimate technology by Microsoft that allows organizations to activate systems within their own network. Instead of requiring each machine to connect to Microsoft’s activation servers, KMS allows a central server to handle activation for all machines connected to it.
Windows editions that support KMS activation include:
- Windows 11 Home
- Windows 11 Home Single Language
- Windows 11 Pro
- Windows 11 Pro Education
- Windows 11 Pro for Workstations
- Windows 11 Education
- Windows 11 Enterprise
Each of these editions has its own KMS Client Setup Key, publicly available on Microsoft’s official documentation.
Read also: Activate Office 2021 for FREE using KMS client key by Using batch script
Requirements Before Activation
Before proceeding with KMS activation, ensure the following:
- Your system is running Windows 11 (any edition).
- Your system is not yet activated or you wish to change the current product key.
- You have administrator privileges on the PC.
- Internet connectivity is required (for online KMS activation).
- No third-party antivirus should block
.bat
file execution.
Official Windows 11 KMS Client Setup Keys
Here’s a table of KMS client setup keys for all Windows 11 editions. These are official keys from Microsoft used for volume activation and cannot be used for permanent retail activation.
Edition | KMS Client Key |
---|---|
Windows 11 Pro | W269N-WFGWX-YVC9B-4J6C9-T83GX |
Windows 11 Pro N | MH37W-N47XK-V7XM9-C7227-GCQG9 |
Windows 11 Pro Education | 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y |
Windows 11 Pro Education N | YVWGF-BXNMC-HTQYQ-CPQ99-66QFC |
Windows 11 Pro for Workstations | NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J |
Windows 11 Pro N for Workstations | 9FNHH-K3HBT-3W4TD-6383H-6XYWF |
Windows 11 Home | TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 |
Windows 11 Home N | 3KHY7-WNT83-DGQKR-F7HPR-844BM |
Windows 11 Home Single Language | 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH |
Windows 11 Education | NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 |
Windows 11 Education N | 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ |
Windows 11 Enterprise | NPPR9-FWDCX-D2C8J-H872K-2YT43 |
Windows 11 Enterprise N | DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 |
Step-by-Step Guide: Activate Windows 11 Using Batch Script
Step 1: Open Notepad
Press Windows + S
, type Notepad, and open it.
Step 2: Paste the Following Activation Script
Below is a simple batch script that will:
- Set the KMS Client Setup Key for your edition.
- Connect to a free public KMS server.
- Activate Windows.
Note: Replace the key based on your Windows edition from the table above.
batchCopyEdit@echo off
title Activate Windows 11 - All Editions
cls
echo ============================
echo Activating your Windows...
echo ============================
:: Set your edition’s KMS client key (Example: Windows 11 Pro)
cscript //nologo slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
:: Set KMS Server (example server: kms8.msguides.com)
cscript //nologo slmgr.vbs /skms kms8.msguides.com
:: Activate Windows
cscript //nologo slmgr.vbs /ato
:: Check Activation Status
echo ============================
echo Checking activation status...
cscript //nologo slmgr.vbs /xpr
pause
Step 3: Save the File as .bat
Click File > Save As
- File Name:
activate_win11.bat
- Save as Type: All Files
- Encoding: ANSI
- Location: Desktop
Step 4: Run as Administrator
- Right-click on
activate_win11.bat
- Choose Run as administrator
Let the script run. You’ll see activation progress and the final status (The machine is permanently activated
or activated until xx date
).
Troubleshooting Common Issues
Error: “0xC004F074 – The software licensing service reported that the computer could not be activated…”
Solution: This usually means the KMS server is unreachable. Try changing the server to one of the below:
cmdCopyEditslmgr /skms kms.digiboy.ir
slmgr /skms kms.msguides.com
slmgr /skms zh.us.to
slmgr /skms kms8.msguides.com
Error: “Access Denied”
Solution: You must run the script as an administrator.
Activation doesn’t persist after restart
Solution: KMS client keys offer 180-day activation. The system tries to auto-renew every 7 days. If activation is lost, just re-run the script.
How to Change Your Windows Edition
If you’re on Windows 11 Home and want to upgrade to Pro before activation, use this command:
cmdCopyEditchangepk.exe /ProductKey W269N-WFGWX-YVC9B-4J6C9-T83GX
Then reboot and run the batch script again.
How to Remove KMS Key or Reset Activation
To uninstall the KMS key:
cmdCopyEditslmgr /upk
To remove the KMS server address:
cmdCopyEditslmgr /ckms
To clear all activation information:
cmdCopyEditslmgr /rearm
Then restart the system.
Confirming Activation Status
To check if your activation was successful:
- Open Command Prompt as Admin.
- Type: cmdCopyEdit
slmgr /xpr
You’ll see a message like:
“This machine is permanently activated”
or
“Windows will expire after xx days”
Pros and Cons of Using KMS Activation
Pros:
- Free and fast method
- Legal for educational/testing purposes
- Doesn’t require external software
- Doesn’t modify system files
Cons:
- Not permanent (180-day activation)
- Requires a working KMS server
- May be blocked in future updates
Use Case Scenarios
- Students or learners testing Windows 11
- Enterprises using volume licenses
- Developers testing across multiple Windows editions
- Users running Windows on virtual machines (VMs)
Is This Method Legal?
Using KMS activation with Microsoft-provided KMS client keys is legal only in enterprise environments or for educational/testing purposes. Activating Windows this way for personal long-term use may violate Microsoft’s End User License Agreement.
If you’re using Windows regularly for personal or business use, consider purchasing a retail key or a legitimate OEM license.
Re-activation Strategy
Since KMS activations are valid for 180 days, you can:
- Re-run the batch file every 6 months.
- Schedule it using Windows Task Scheduler for automation.
- Set a reminder to check activation using
slmgr /xpr
.
Frequently Asked Questions (FAQs)
Q1: Is this the same as cracking Windows?
No, this method uses Microsoft’s own KMS technology. There’s no file patching or unauthorized tools used.
Q2: Will Windows updates work?
Yes, this method doesn’t block updates or access to Microsoft services.
Q3: Can I activate Microsoft Office using KMS too?
Yes, Microsoft Office (Volume Editions like Pro Plus) can also be activated using KMS. A similar batch script is used with Office KMS client keys.
Q4: Is it safe for long-term use?
Yes, but it’s not permanent. You’ll need to re-activate every 180 days or automate the renewal using scripts.
Conclusion
KMS client key activation is a powerful and transparent way to activate Windows 11 editions for testing, educational, or enterprise purposes. By using a simple batch script and legitimate public keys provided by Microsoft, you can easily activate any version of Windows 11 — completely free, without needing any shady software.
That said, always consider the legal aspects of activation. For daily, long-term use, it’s best to invest in a genuine license.
Download Pre-made Activation Script (Optional)
For your convenience, you can create or download a pre-written batch file with built-in key detection and automated KMS server selection. You can also customize it to auto-renew or activate Office products.
Thanks for reading!
If you found this guide useful, bookmark it or share it with friends or classmates who might need help activating their Windows 11 editions safely.
Read also: Memes a Digital Weapon – Research Paper