Activate Windows on a self-built PC without entering a product key.
Activate Microsoft Office on an older installation that lost its license.
Troubleshoot broken Windows or Office activation as a recovery step.
Enable Extended Security Updates on systems that need extended support.
Microsoft Activation Scripts (MAS) is an open-source Windows and Office activator that provides several activation methods, including HWID, Ohook, TSforge, and Online KMS, along with advanced troubleshooting. Activation here means the process by which Windows and Microsoft Office determine whether a copy is licensed; MAS automates that step using scripted methods rather than going through Microsoft's product-key entry flow. The repo also covers Extended Security Updates (ESU) activation. It works by giving you a script that opens an interactive menu in your terminal, where you pick the activation method you want from a numbered list. The README documents two ways to run it: a PowerShell one-liner that downloads and executes the script directly from the project's domain (with a fallback variant that uses DNS-over-HTTPS through 1.1.1.1 if your ISP or DNS provider blocks access), and a traditional download-and-run path where you grab the MAS_AIO.cmd file or its zipped version from Azure DevOps and execute it locally. The PowerShell route is supported on Windows 8.1, 10, and 11; the traditional route works on Windows Vista and later. You'd use this if you want to activate a Windows or Office installation without going through Microsoft's normal channels, for example, on a self-built PC, an old install, or as a troubleshooting step when activation has broken. The README explicitly cautions that "irm | iex" downloads and executes remote code, so you should double-check the URL and watch for third parties spreading malware disguised as MAS by altering it. The codebase is primarily Batch scripts. The latest version listed is 3.11, released 02-May-2026.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.