Skip to main content

Microsoft Activation Scripts (MAS)

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


How to Activate Windows / Office?

Method 1 - PowerShell (Windows 8 and later) ❤️

info
  1. Open PowerShell
    To do that, press the Windows key + X, then select PowerShell or Terminal.

  2. Copy and paste the code below, then press enter.

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

Alternatively, you can use the following (this will be deprecated in the future):

irm https://massgrave.dev/get | iex
  1. You will see the activation options.
    Press [1] HWID for Windows activation.
    Press [2] Ohook for Office activation.

  2. That's all

Method 2 - Traditional (Windows 7 and later)

Click here to view
  1. Download the file using one of the links below:
    https://github.com/massgravel/Microsoft-Activation-Scripts/archive/refs/heads/master.zip
    or
    https://git.activated.win/massgrave/Microsoft-Activation-Scripts/archive/master.zip
  2. Right-click on the downloaded zip file and extract it.
  3. In the extracted folder, find the folder named All-In-One-Version.
  4. Run the file named MAS_AIO.cmd.
  5. You will see the activation options. Follow the on-screen instructions.
  6. That's all.

Not working ❓

  • If you are unable to launch MAS using the PowerShell method, please refer to Method 2 above.
  • If MAS launches but displays errors, check for troubleshooting steps highlighted in blue and follow them.
  • If issues persist, feel free to reach out to us here.

note
  • 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, as some spread malware disguised as MAS by changing the URL in the IRM command.

MAS Latest Release

Last Release - v3.0 (14-Feb-2025)
GitHub / Azure DevOps / Self-hosted Git


Features

  • HWID (Digital License) Method to Permanently Activate Windows
  • Ohook Method to Permanently Activate Office
  • TSforge Method to Permanently Activate Windows/ESU/Office
  • KMS38 Method to Activate Windows Till the Year 2038
  • Online KMS Method to Activate Windows/Office For 180 Days (Lifetime With Renewal Task)
  • Advanced Activation Troubleshooting
  • $OEM$ Folders For Preactivation
  • Change Windows Edition
  • Change Office Edition
  • Check Windows/Office Activation Status
  • Available in All In One and Separate Files 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 / OfficePermanentNo
KMS38Windows 10-11-ServerTill the Year 2038No
Online KMSWindows / Office180 Days. Lifetime With Renewal TaskYes

For more details, use the respective activation details in Docs and comparison chart.
To activate unsupported products such as Office on Mac, check here.


Screenshots


Made with Love ❤️