Microsoft Activation Scripts (MAS)

A Windows and Office activator using HWID / Ohook / KMS38 / Online KMS activation methods, with a focus on open-source code and fewer antivirus detections.


  • HWID (Digital License) Method to Permanently Activate Windows
  • Ohook Method to Permanently Activate Office
  • KMS38 Method to Activate Windows/Server Till the Year 2038
  • Online KMS Method to Activate Windows/Server/Office Till 180 Days (Lifetime With Renewal Task)
  • Advanced Activation Troubleshoot
  • $OEM$ Folders For Preactivation
  • Change Windows Edition
  • Check Windows/Office Activation Status
  • Available in All In One and Separate Files Version
  • Fully Open Source and Based on Batch Script
  • Fewer Antivirus Detections

MAS Latest Release

Last Release - v2.2 (03-Oct-2023)
GitHub / Bitbucket

Note: HWID Activation is working again with a new method.

Download / How to use it?

Method 1 - PowerShell


  • On Windows 8.1/10/11, right-click on the Windows start menu and select PowerShell or Terminal (Not CMD).
  • Copy-paste the below code and press enter
    irm | iex
  • You will see the activation options, and follow onscreen instructions.
  • That’s all.

Method 2 - Traditional

  • Download the file from here
  • Right click on the downloaded zip file and extract
  • In the extracted folder, find the folder named All-In-One-Version
  • Run the file named MAS_AIO.cmd
  • You will see the activation options, and follow onscreen instructions.
  • That’s all.

To run the scripts in unattended mode, check here

Activations Summary

Activation Type Supported Product Activation Period
HWID Windows 10-11 Permanent
Ohook Office Permanent
KMS38 Windows 10-11-Server Till the Year 2038
Online KMS Windows / Office 180 Days. Lifetime With Renewal Task

For more details, use the respective activation details in Doc.

To activate unsupported products such as Office on Mac, check here.


Other Projects

Made with Love ❤️