PowerShell tool to activate Microsoft Office 2016 - 2024 via static Professional Plus KMS client keys.
(Note: this works on local installations of Microsoft Office, and has nothing to do with cloud-based Office 365)
- Run script with elevated privileges (i.e., as Administrator).
 - Internet connectivity for online key activation (only needed for the initial script execution).
 
# One-Liner: Execute Script w/ Default Parameters
irm https://tylerdotrar.github.io/Activate-MicrosoftOffice | iex; Activate-MicrosoftOffice# Step-by-Step: Load Script into the Current Session
$ScriptContents = Invoke-RestMethod -Uri 'https://tylerdotrar.github.io/Activate-MicrosoftOffice'
Invoke-Expression -Command $ScriptContents
# Activate Office 2016-2021 (w/ Default Parameters)
Activate-MicrosoftOffice
# Activate Office 2024 (w/ Default Parameters)
Activate-MicrosoftOffice -Office2024
# Activate Office, but do NOT disable automatic updates (might result in 'GET GENUINE OFFICE' banner)
Activate-MicrosoftOffice -DontRollBackWhile not a hard requirement, it is recommended to use one of the official Microsoft Office download links listed below:
- Microsoft Office 2024 (Professional Plus) → ProPlus2024Retail.img
 - Microsoft Office 2021 (Professional Plus) → ProPlus2021Retail.img
 - Microsoft Office 2019 (Professional Plus) → ProPlus2019Retail.img
 - Microsoft Office 2016 (Professional Plus) → ProPlusRetail.img
 
"What are KMS keys?"
Essentially, Key Management System (KMS) client keys are static enterprise keys designed to handle large-scale activation within an organization. They generally rely on a local KMS activation server, allowing organizations to activate multiple clients on their network via volume licensing, rather than each individual client connecting to Microsoft for activiation.
In contrast, consumer keys (such as retail or OEM) are essentially dynamic, one-time-use keys intended for small-scale, individual user activation. These are what you usually use when you activate your product.
This project modifies local versions of Microsoft Office to utilize Microsoft's static KMS client keys rather than one-time-use consumer keys. The Office instance is then activated with a Professional Plus KMS client key via a publicly available KMS activation server.
This PowerShell script supports Microsoft Office 2016, 2019, 2021, and 2024 -- and has been tested on both Windows 10 and Windows 11.
- Script Features:
- Supports both 32-bit and 64-bit versions of Office.
 - Supports Microsoft Office 2016, 2019, and 2021.
 - Script works with both Desktop PowerShell and PowerShell Core.
 - Contains moderate error correction.
 - [Version 1.1.0] Supports custom KMS servers and ports.
 - [Version 2.0.0] Remove 
GET GENUINE OFFICEbanner via version rollback & disabled auto-updates. - [Version 2.0.1] Minor visual formatting adjustments.
 - [Version 2.0.3] Added Microsoft Office 2024 support.
 
 
Get-Help information (as of v2.0.3).
Error Correction: Not executed in elevated terminal.
Error Correction: Microsoft Office not installed.
Error Correction: Could not connect to KMS server(s).
Office version rollback introduced in v2.0.0.





