explaingit

massgravel/microsoft-activation-scripts

📈 Trending175,683BatchfileAudience · developerComplexity · 2/5ActiveLicenseSetup · easy

TLDR

Open-source Windows and Office activator using scripted methods like HWID, Ohook, and KMS to automate licensing verification without product keys.

Mindmap

mindmap
  root((repo))
    What it does
      Activates Windows
      Activates Office
      Troubleshoots activation
    Activation methods
      HWID activation
      Ohook method
      KMS online
      TSforge method
    How to use
      PowerShell one-liner
      Download and run
      Interactive menu
    Supported systems
      Windows Vista+
      Windows 8.1 10 11
      Extended Security Updates

Things people build with this

USE CASE 1

Activate Windows on a self-built PC without entering a product key.

USE CASE 2

Activate Microsoft Office on an older installation that lost its license.

USE CASE 3

Troubleshoot broken Windows or Office activation as a recovery step.

USE CASE 4

Enable Extended Security Updates on systems that need extended support.

Tech stack

BatchPowerShellWindows

Getting it running

Difficulty · easy Time to first run · 5min
Use it freely, but any project you distribute that includes this code must also be GPL-licensed and open source.

In plain English

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.

Copy-paste prompts

Prompt 1
How do I use the MAS PowerShell one-liner to activate Windows 11 on my machine?
Prompt 2
What's the difference between HWID and KMS activation methods in this script?
Prompt 3
Show me how to download and run MAS_AIO.cmd locally instead of using the PowerShell command.
Prompt 4
How do I activate Extended Security Updates using this tool?
Prompt 5
What should I check to make sure I'm running the real MAS script and not a malicious copy?
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.