explaingit

massgravel/microsoft-activation-scripts

Analysis updated 2026-05-18

174,248BatchfileAudience · developerComplexity · 2/5LicenseSetup · 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
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

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.

What is it built with?

BatchPowerShellWindows

How does it compare?

massgravel/microsoft-activation-scriptsrealpython/python-guideflowseal/zapret-discord-youtube
Stars174,24829,60727,460
LanguageBatchfileBatchfileBatchfile
Setup difficultyeasyeasymoderate
Complexity2/51/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get 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?

Frequently asked questions

What is microsoft-activation-scripts?

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

What language is microsoft-activation-scripts written in?

Mainly Batchfile. The stack also includes Batch, PowerShell, Windows.

What license does microsoft-activation-scripts use?

Use it freely, but any project you distribute that includes this code must also be GPL-licensed and open source.

How hard is microsoft-activation-scripts to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is microsoft-activation-scripts for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub massgravel on gitmyhub

Verify against the repo before relying on details.