# massgravel/microsoft-activation-scripts architecture

> Architecture diagram of the GitHub repository massgravel/microsoft-activation-scripts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/massgravel/microsoft-activation-scripts
- Repository: https://github.com/massgravel/microsoft-activation-scripts
- Video tour (about a minute): https://gitdiagram.com/massgravel/microsoft-activation-scripts/video

## Overview

MAS is a Windows and Office activation and support-script collection. The documented repository workflow is to run the all-in-one command script, choose a menu option, and apply an activation method; separate scripts also cover edition changes, activation status, OEM-folder extraction, and troubleshooting. The README names the activation methods, while the tree identifies their script paths. With no source excerpts, dispatches from the all-in-one menu to individual scripts are shown as unverified rather than asserted as code-level calls.

Main entry points: [`MAS/All-In-One-Version-KL/MAS_AIO.cmd`](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/All-In-One-Version-KL/MAS_AIO.cmd) (All-in-one script), [`MAS/Separate-Files-Version`](https://github.com/massgravel/microsoft-activation-scripts/tree/master/MAS/Separate-Files-Version) (Separate scripts), [`MAS/Separate-Files-Version/Activators/HWID_Activation.cmd`](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd) (HWID activation), [`MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd`](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd) (Ohook activation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry points"]
  node_aio["All-in-one script<br/>[MAS_AIO.cmd]"]
  node_separate["Separate scripts"]
end

subgraph group_activation["Activation methods"]
  node_hwid["HWID activation"]
  node_ohook["Ohook activation"]
  node_kms["Online KMS"]
  node_tsforge["TSforge activation"]
end

subgraph group_support["System support"]
  node_windowsedition["Windows edition"]
  node_officeedition["Office edition"]
  node_status["Activation status"]
  node_oem["OEM folder"]
  node_troubleshoot["Troubleshooting<br/>[Troubleshoot.cmd]"]
end

node_user(("Windows user"))

node_user -->|"runs"| node_aio
node_user -->|"runs"| node_separate
node_aio -.->|"may dispatch"| node_hwid
node_aio -.->|"may dispatch"| node_ohook
node_aio -.->|"may dispatch"| node_kms
node_aio -.->|"may dispatch"| node_tsforge

click node_aio "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/All-In-One-Version-KL/MAS_AIO.cmd"
click node_separate "https://github.com/massgravel/microsoft-activation-scripts/tree/master/MAS/Separate-Files-Version"
click node_hwid "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd"
click node_ohook "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd"
click node_kms "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd"
click node_tsforge "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd"
click node_windowsedition "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Change_Windows_Edition.cmd"
click node_officeedition "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Change_Office_Edition.cmd"
click node_status "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Check_Activation_Status.cmd"
click node_oem "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd"
click node_troubleshoot "https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Troubleshoot.cmd"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_aio,node_separate,node_user toneBlue
class node_hwid,node_ohook,node_kms,node_tsforge toneAmber
class node_windowsedition,node_officeedition,node_status,node_oem,node_troubleshoot toneMint
```

## Components

### Entry points

- [All-in-one script](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/All-In-One-Version-KL/MAS_AIO.cmd): `MAS/All-In-One-Version-KL/MAS_AIO.cmd`
- [Separate scripts](https://github.com/massgravel/microsoft-activation-scripts/tree/master/MAS/Separate-Files-Version): `MAS/Separate-Files-Version`

### Activation methods

- [HWID activation](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd): `MAS/Separate-Files-Version/Activators/HWID_Activation.cmd`
- [Ohook activation](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd): `MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd`
- [Online KMS](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd): `MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd`
- [TSforge activation](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd): `MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd`

### System support

- [Windows edition](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Change_Windows_Edition.cmd): `MAS/Separate-Files-Version/Change_Windows_Edition.cmd`
- [Office edition](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Change_Office_Edition.cmd): `MAS/Separate-Files-Version/Change_Office_Edition.cmd`
- [Activation status](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Check_Activation_Status.cmd): `MAS/Separate-Files-Version/Check_Activation_Status.cmd`
- [OEM folder](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Extract_OEM_Folder.cmd): `MAS/Separate-Files-Version/Extract_OEM_Folder.cmd`
- [Troubleshooting](https://github.com/massgravel/microsoft-activation-scripts/blob/master/MAS/Separate-Files-Version/Troubleshoot.cmd): `MAS/Separate-Files-Version/Troubleshoot.cmd`

### Other components

- **Windows user**

## Connections

- Windows user → All-in-one script: runs (evidence: `README.md`)
- Windows user → Separate scripts: runs (evidence: `README.md`)
- All-in-one script → HWID activation: may dispatch
- All-in-one script → Ohook activation: may dispatch
- All-in-one script → Online KMS: may dispatch
- All-in-one script → TSforge activation: may dispatch
