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.
irm https://get.activated.win | iex
  1. 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: MAS_AIO.cmd
  2. Run the MAS_AIO.cmd file.
  3. In the menu that appears, type the number corresponding to one of the Green options.
  4. 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.
  • No password is required for any download on this site.

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.


Site Map

Browse the full list of pages on this site: /sitemap.xml


Screenshots

MAS HWID activation menu screenshot

MAS Ohook Office activation screenshot

MAS TSforge activation screenshot


In-Depth Guides


Free Tools

Download Microsoft Activation Scripts (MAS) v3.11

Run MAS_AIO.cmd directly, or download the ZIP archive if your browser blocks the script.

PowerShell one-liner (recommended):

irm https://get.activated.win | iex

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