mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-08-08 10:23:35 +00:00
Re-architect the Microsoft Activation Scripts from ~46k lines of Windows
batch into an idiomatic Rust crate (MAS/). Not a line-by-line translation:
typed enums + Result flow replace goto/errorlevel/global-set, and a single
`Spp` trait is the only seam between portable logic and Windows internals.
- Portable core (compiles + 20 tests pass, zero deps): model (real SPP
GUIDs / WMI class names / LicenseStatus codes), typed errors, CLI menu,
Check_Activation_Status read path, Online KMS orchestration with host
fallback, stub backend.
- Windows backend (cfg(windows) + `winapi` feature): WMI/COM via the
`windows` crate, all unsafe/VARIANT handling encapsulated behind `Spp`.
Written from the documented SPP contract; not compiled on the Linux port
host.
- HWID/KMS38/Ohook/TSforge scaffolded against analyzed specs (in module
docs) — unported paths return a typed Unsupported error rather than
falsely reporting activation. Roadmap in MAS/README.md.
The original .cmd scripts remain recoverable in history (
|
||
|---|---|---|
| MAS | ||
| .gitattributes | ||
| LICENSE | ||
| README.md | ||

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 Security Updates (ESU)?
Method 1 - PowerShell ❤️
-
Click the Start Menu, type
PowerShell, and open it. -
Copy and paste the code below and press Enter.
- For Windows 8.1, 10 and 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) - Script not launching? Use the below-listed Method 2.
- For Windows 8.1, 10 and 11:
-
In the menu that appears, type the number corresponding to one of the Green options.
Method 2 - Traditional (Windows Vista and later)
- Download the script:
- MAS_AIO.cmd (Direct script)
- MAS_AIO.zip (If the direct script is blocked by your browser)
- Run the
MAS_AIO.cmdfile. - In the menu that appears, type the number corresponding to one of the Green options.
Tip
- Some ISPs/DNS providers 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.
Note
- The
irmcommand in PowerShell downloads a script from a specified URL, and theiexcommand executes it.- Always double-check the URL before executing the command and verify the source is trustworthy when manually downloading files.
- Be cautious of third parties spreading malware disguised as MAS by altering the URL in the PowerShell command.






