massgravel/Microsoft-Activation-Scripts
{ "createdAt": "2020-01-12T23:03:34Z", "defaultBranch": "master", "description": "Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.", "fullName": "massgravel/Microsoft-Activation-Scripts", "homepage": "https://massgrave.dev", "language": "Batchfile", "name": "Microsoft-Activation-Scripts", "pushedAt": "2025-11-23T21:27:07Z", "stargazersCount": 157599, "topics": [ "activator", "hwid", "kms", "kms38", "massgrave", "massgravel", "microsoft", "microsoft365", "office", "office365", "ohook", "powershell", "tsforge", "windows", "windows-10", "windows-11" ], "updatedAt": "2025-11-27T06:09:26Z", "url": "https://github.com/massgravel/Microsoft-Activation-Scripts"}
Microsoft Activation Scripts (MAS)
Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.
How to Activate Windows / Office / Extended Updates (ESU)?
Section titled “How to Activate Windows / Office / Extended Updates (ESU)?”Method 1 - PowerShell ❤️
Section titled “Method 1 - PowerShell ❤️”-
Open PowerShell
Click the Start Menu, typePowerShell, then open it. -
Copy and paste the code below, then press enter.
- For Windows 8, 10, 11: 📌
If the above is blocked (by ISP/DNS), try this (needs updated Windows 10 or 11):irm https://get.activated.win | iexiex (curl.exe -s --doh-url https://1.1.1.1/dns-query https://get.activated.win | Out-String)
- For Windows 7 and later:
iex ((New-Object Net.WebClient).DownloadString('https://get.activated.win'))
- Script not launching❓Use the below-listed Method 2.
- For Windows 8, 10, 11: 📌
-
The activation menu will appear. Choose the green-highlighted options to activate Windows or Office.
-
Done!
Method 2 - Traditional (Windows Vista and later)
Section titled “Method 2 - Traditional (Windows Vista and later)”- Download the script: MAS_AIO.cmd or the full ZIP.
- Run the file named
MAS_AIO.cmd. - You will see the activation options. Follow the on-screen instructions.
- That’s all.
[!TIP]
- Some ISPs/DNS block access to our domains. You can bypass this by enabling DNS-over-HTTPS (DoH) in your browser.
- Having trouble❓Visit our troubleshooting page or raise an issue on GitHub.
- To activate additional products such as Office for macOS, Visual Studio, RDS CALs, and Windows XP, check here.
- To run the scripts in unattended mode, check here.
[!NOTE]
- The IRM command in PowerShell downloads a script from a specified URL, and the IEX command executes it.
- Always double-check the URL before executing the command and verify the source if manually downloading files.
- Be cautious, as some spread malware disguised as MAS by using different URLs in the IRM command.
Latest Version: 3.9Release date: 19-Nov-2025[![1.1]][1] [![1.2]][2] [![1.3]][3]
[![1.4]][4] [![1.5]][5] [![1.6]][6] [![1.7]][7]
[1.1] !: https://massgrave.dev/img/logo_github.png (GitHub) [1.2] !: https://massgrave.dev/img/logo_azuredevops.png (AzureDevOps) [1.3] !: https://massgrave.dev/img/logo_gitea.png (Self-hosted Git)
[1.4] !: https://massgrave.dev/img/logo_discord.png (Chat with us without signup) [1.5] !: https://massgrave.dev/img/logo_reddit.png (Reddit) [1.6] !: https://massgrave.dev/img/logo_bluesky.png (Bluesky) [1.7] !: https://massgrave.dev/img/logo_x.png (Twitter)
[1] !: https://github.com/massgravel/Microsoft-Activation-Scripts [2] !: https://dev.azure.com/massgrave/_git/Microsoft-Activation-Scripts [3] !: https://git.activated.win/Microsoft-Activation-Scripts [4] !: https://discord.gg/j2yFsV5ZVC [5] !: https://www.reddit.com/r/MAS_Activator [6] !: https://bsky.app/profile/massgrave.dev [7] !: https://twitter.com/massgravel
Made with Love ❤️