MAS script is the short name people use for Microsoft Activation Scripts (MAS), the open-source activation toolkit published by the Massgrave project. It activates Windows 7 through Windows 11 and Windows Server, plus Microsoft Office 2013–2024, LTSC and converted Microsoft 365 installations — without product keys, cracks or patched system files being downloaded from unknown mirrors.
What is the MAS script?
The MAS script is a single collection of PowerShell and batch files. Instead of shipping a compiled executable (like older tools such as KMSPico), everything MAS does is plain text you can read before you run it. That transparency is the entire point of the project: the code is published on GitHub, mirrored on Azure DevOps, and every release is reproducible from source.
The MAS script bundles four independent activation engines behind one menu:
- HWID — permanent, hardware-bound digital licence for Windows 10 and 11.
- Ohook — permanent, fully offline activation for Microsoft Office.
- TSforge — offline activation for Windows 7/8.1/10/11, Server and ESU.
- KMS38 — activation valid until the year 2038 for Windows and Server.
There is also an Online KMS option (180-day renewals with a scheduled task) for editions the permanent methods do not cover.
How to run the MAS script
The fastest and safest way to run the MAS script is the official one-liner. Open PowerShell as Administrator, then paste:
irm https://get.activated.win | iex
The MAS menu appears in the console. Pick your method with a number key, wait for the success message, and reboot if the script asks you to. If your network blocks the one-liner, use the download button on the homepage to grab the archive and run MAS_AIO.cmd as Administrator instead.
If PowerShell itself is broken or blocked by policy, see the PowerShell fix guide. If antivirus removes the file mid-download, temporarily disable real-time protection — activation tooling is a classic false positive.
Activation methods inside MAS
| Method | Best for | Permanent | Needs internet |
|---|---|---|---|
| HWID | Windows 10 / 11 | Yes, tied to hardware | Yes, once |
| Ohook | Office 2016–2024, M365 | Yes | No |
| TSforge | Win 7–11, Server, ESU | Yes | No |
| KMS38 | Windows / Server to 2038 | Until 2038 | No |
| Online KMS | Everything else | Auto-renews | Yes, periodically |
If you are unsure, the rule of thumb is simple: HWID for Windows, Ohook for Office. Read the deeper comparisons in the HWID guide, Ohook guide, TSforge guide and the KMS38 vs HWID comparison.
Is the MAS script safe?
The MAS script contains no malware, no bundled adware and no telemetry. Every line is auditable, and the project has been reviewed publicly for years. The real risk is not MAS — it is where you get MAS from. Typo-squatted domains and reupload sites repackage the script with additional payloads.
Stay safe with three habits:
- Use the official one-liner
irm https://get.activated.win | iex, or download from this site or the GitHub repository. - Never trust an
.execlaiming to be MAS. MAS ships as scripts, not installers. - Read the script before running it if you are unsure — that option exists precisely because MAS is open source.
More detail lives in the MAS security analysis and Is Massgrave safe?.
MAS script FAQ
What does the MAS script actually change on my PC?
Depending on the method, MAS installs a licence key, writes activation tickets, or patches Office licensing libraries locally. It does not install background services beyond the optional Online KMS renewal task, does not modify Windows Update, and can be reverted from the same menu.
Will Windows Update still work after running the MAS script?
Yes. Activation and updates are separate subsystems. Windows and Office keep receiving security and feature updates normally after HWID, Ohook, TSforge or KMS38 activation.
Does the MAS script expire?
HWID lasts as long as the hardware stays the same, Ohook and TSforge are permanent, KMS38 runs until 2038, and Online KMS renews itself every 180 days through a scheduled task.
Can I run the MAS script on Windows Server?
Yes. Windows Server 2008 R2 through Server 2025 are supported via TSforge, KMS38 or Online KMS depending on the edition. See Activate Windows Server 2025 free.
Where is the official MAS script hosted?
The canonical sources are the Massgrave GitHub repository, the Azure DevOps mirror and this site. Anything else is a third-party copy you should verify yourself.