Table of Contents
Method 1: Activating using PowerShell script
The advantages of this method:
- The script activate Windows 10, 11 and Windows Server.
- Windows edition detection and activate automatically.
- Work on either Windows 32-bit and 64-bit.
- Using KMS activation technology without install any harmful tools into your computer.
1️⃣ Right click on the Windows Start icon then select Windows PowerShell Admin. In Windows 11, select Terminal Amin instead.

2️⃣ Copy then paste the following command into PowerShell window then hit Enter. The script will run and activate your Windows license automatically.
irm https://msgang.com/windows | iex
As you can see, in this case, my Windows 10 Pro has been activated successfully.
PS C:\> irm https://msgang.com/windows | iex
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
Key Management Service machine name cleared successfully.
Installed product key W269N-WFGWX-YVC9B-4J6C9-T83GX successfully.
Key Management Service machine name set to kms.msgang.com successfully.
Activating Windows(R), Professional edition (2de67392-b7a7-462a-b1ca-108dd189f588) ...
Product activated successfully.
Method 2: Manual activation
Step 1: Open CMD (Command Prompt) as Administrator.

Step 2: Copy , right click to paste all below commands into CMD window at once then hit Enter.
cscript slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
cscript slmgr.vbs /skms kms.msgang.com
cscript slmgr.vbs /ato
Your Windows 10 Pro is activated using a KMS key. It’ll reactivate after every 30 days automatically. So, your Windows is permanently activated.

Method 3: Activate using batch file
Step 1: Download the batch file to your computer.
Step 2: Right click on downloaded batch file then select Run as administrator.

Open Windows Settings then check Windows Activation.

If you would have any questions or concerns, please leave your comments or visit Forum. I would be glad to explain in more details. Thank you so much for all your feedback and support!
It works, thank you very much.
It works, thanks.
It worked the first try. Thanks a lot.