Webanion Main Logo
HomePortfolioBlogAboutContact
HomePortfolioBlogAboutContact
Webanion Logo Head
HomeServicesPortfolioBlogAboutTestimonialsContact

© 2026 Webanion • All Rights Reserved

windows and office activation  written by Md Moniruzzaman

How to Activate Windows and Microsoft Office Using Microsoft Activation Scripts (MAS)

Md MoniruzzamanTech DIYNov 15, 2025

How to Activate Windows and Microsoft Office Using Microsoft Activation Scripts (MAS)

Overview: This Tech DIY guide walks you through activating Windows (from 7 onwards) and Microsoft Office (2010 and later) using the open-source Microsoft Activation Scripts (MAS). MAS is a free, community-maintained tool hosted on GitHub that provides multiple activation methods like HWID (Hardware ID), Ohook, Online KMS, and more—ideal for home labs, testing, or extending trial periods legally where permitted. It supports Extended Security Updates (ESU) and includes troubleshooting tools. We'll use the simple PowerShell one-liner irm https://get.activated.win | iex to fetch and run the latest version securely. Always run as administrator, and note: This is for educational purposes; check local laws for production use.


Why Use MAS? Features and Benefits

MAS stands for Microsoft Activation Scripts and is developed by the community (repository: https://github.com/massgravel/Microsoft-Activation-Scripts). It's lightweight, doesn't require installation, and offers:

  • Multiple Activation Methods: HWID for permanent digital licensing (Windows 10/11), Ohook for Office, Online KMS for 180-day renewals, TSforge for advanced setups, and KMS38 for long-term activation.
  • Supported Products: Windows 7/8/10/11, Office 2010–2024 (including LTSC and C2R editions), Visual Studio, and even unsupported ones like Windows XP or Office for macOS (via separate guides).
  • Safety Checks: The bootstrap script verifies file integrity (SHA-256 hash), detects antivirus interference, and ensures .NET Framework compatibility.
  • Troubleshooting Built-In: Tools to check activation status, remove prior activations, or diagnose issues like proxy blocks.
  • Unattended Mode: For scripting/automation via command-line switches.

Important Disclaimer: MAS uses public KMS servers and digital entitlements, which Microsoft allows for volume licensing scenarios. It's not for piracy—use only on legally obtained software. Antivirus may flag it (false positive); add exceptions if needed. Always download from official sources to avoid malware.


Prerequisites: What You'll Need

  1. System Requirements: Windows 7 or later (Vista supported manually), PowerShell 2.0+ (built-in on Windows 7+), internet connection for initial download, and administrator privileges.
  2. Disable Security Temporarily: Pause real-time antivirus (e.g., Windows Defender) during execution—reenable after. If using a firewall/proxy, ensure PowerShell can access the internet.
  3. Legal Software: Ensure you have genuine Windows/Office installs (e.g., from ISO or trial). MAS won't "crack" pirated copies.
  4. Backup: Create a system restore point via Control Panel > Recovery > Create a restore point.

Verify your current activation status first: Open Command Prompt as admin and run slmgr /xpr (for Windows) or check in any Office app under File > Account.


Step 1: Prepare PowerShell and Run the One-Liner Command

  1. Right-click the Start button and select Windows PowerShell (Admin) or Terminal (Admin) (on Windows 11). If prompted by UAC, click Yes.
  2. In the PowerShell window, paste and press Enter:
     

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

    What this does: irm (Invoke-RestMethod) downloads the bootstrap script from https://get.activated.win, which fetches the latest MAS_AIO.cmd from GitHub/Azure DevOps mirrors, verifies its SHA-256 hash (D60752A27BDED6887C5CEC88503F0F975ACB5BC849673693CA7BA7C95BCB3EF4), and runs it in a temp CMD window. A progress bar shows download status.

  3. If the above fails (e.g., ISP block), try alternatives:

    • For Windows 10/11 with curl:

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

      iex ((New-Object Net.WebClient).DownloadString('https://get.activated.win'))

    The script auto-elevates if needed and checks for issues like restricted PowerShell mode (fix via massgrave.dev/fix_powershell).

  4. If antivirus blocks it, add an exclusion for PowerShell.exe and temp folders (%TEMP%). The script will warn you with links to troubleshooting.

Step 2: Navigate the MAS Menu and Choose Activation

  1. Once launched, MAS opens a green-highlighted menu in CMD. It auto-detects your installed products (Windows/Office versions).
  2. For Windows Activation: Select [1] (HWIDGEN) for permanent activation on Windows 10/11 (digital license tied to hardware). Or [2] (Online KMS) for 180-day activation (auto-renews). Press Enter and follow prompts—it may require a restart.
  3. For Office Activation: Select [3] (Ohook) for permanent activation (supports 2010–2024, including Visio/Project). Or [4] (Online KMS) for trials. MAS injects the method without altering files.
  4. Advanced Options: Use [5] for ESU activation, [6] for Visual Studio, or [7] for troubleshooting (e.g., Check Activation Status or Remove Activation).
  5. After selection, MAS runs silently (progress shown). Close the window when done—it auto-cleans temp files.

Example Output: You'll see messages like "Activation successful! Reboot recommended." For KMS, it sets a 180-day timer; run MAS again to renew.


Step 3: Verify Activation and Restart

  1. For Windows: Run slmgr /xpr in CMD—should show "Permanently activated" or "Time remaining: 180 days."
  2. For Office: Open Word/Excel, go to File > Account > Product Information—look for "Product Activated."
  3. Restart your PC to apply changes fully.
  4. Re-enable antivirus and test features (e.g., updates via Settings > Update & Security).

Alternative: Manual Download Method (No PowerShell)

If PowerShell issues persist:

  1. Download MAS_AIO.cmd directly: Direct Download or full ZIP: ZIP.
  2. Right-click the .cmd file > Run as administrator.
  3. Follow the same menu as Step 2.

Troubleshooting Common Issues

  • Execution Policy Blocked: Run Set-ExecutionPolicy Bypass -Scope Process in PowerShell first.
  • Hash Mismatch/Download Fail: Check internet/firewall; report at massgrave.dev/troubleshoot.
  • Antivirus Flags: Whitelist the script—it's open-source and scanned clean.
  • Unsupported Version: See unsupported guide or use command-line switches (e.g., MAS_AIO.cmd /KMS38 for 2038 expiry).
  • Reactivation Needed: Run MAS's removal tool first, then reactivate.

For more: Visit the official docs or GitHub issues.


Final Tips and Resources

MAS is updated regularly—rerun the one-liner for the latest. For automation, explore switches. Remember, this empowers DIY techies but respects Microsoft's ecosystem. If issues persist, community forums like Reddit's r/MAS are helpful.

 

You Might Also Like

create bootable pendrive written by Md Moniruzzaman
Tech DIY

How to Create a Bootable USB Drive for Any OS (Windows, Linux, macOS)

Learn how to use Rufus, BalenaEtcher, or command-line tools to make a bootable USB for Windows, Linux, or macOS easily and safely.

Md Moniruzzaman Image
Md MoniruzzamanDec 07, 2025
make your computer faster written by Md Moniruzzaman
Tech DIY

How to Speed Up a Slow PC: 10 Practical Fixes That Actually Work

Boost your PC performance with 10 easy, proven fixes—clear junk, manage startup apps, and optimize Windows for speed.

Md Moniruzzaman Image
Md MoniruzzamanNov 15, 2025
Upgrade windows by media creation tools written by Md Moniruzzaman
Tech DIY

How to Fresh Install or Upgrade Windows 10/11 Using Media Creation Tool Without Losing Files

Learn how to refresh Windows 10 or 11 using Media Creation Tool safely, keeping your files and apps intact while solving system issues

Md Moniruzzaman Image
Md MoniruzzamanNov 15, 2025