Skip to content

PowerShell tool to activate Microsoft Office 2016 - 2021 via static Professional Plus KMS client keys.

License

Notifications You must be signed in to change notification settings

tylerdotrar/Activate-MicrosoftOffice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Activate-MicrosoftOffice

PowerShell tool to activate Microsoft Office 2016 - 2021 via static Professional Plus KMS client keys.

(Note: this does not work on anything beyond Office 2021 due to Microsoft's transition to cloud-based Office 365)

TL;DR

image

Requirements:

  1. Run script with elevated privileges (i.e., as Administrator).
  2. Internet connectivity for online key activation (only needed for the initial script execution).

Usage:

# 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 w/ Default Parameters
Activate-MicrosoftOffice

# Activate Office, but do NOT disable automatic updates (might result in 'GET GENUINE OFFICE' banner)
Activate-MicrosoftOffice -DontRollBack

Official Microsoft Office Downloads

While not a hard requirement, it is recommended to use one of the official Microsoft Office download links listed below:

Description

"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 only supports Microsoft Office 2016, 2019, and 2021 -- and has been tested on 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 OFFICE banner via version rollback & disabled auto-updates.
    • [Version 2.0.1] Minor visual formatting adjustments.

Example Output(s)

Get-Help information (as of v2.0.2).

Get-Help

Office version rollback introduced in v2.0.0.

Version 2.0.1

Error Correction:  Not executed in elevated terminal.

Not Elevated

Error Correction:  Microsoft Office not installed.

Failed to Find

Error Correction:  Could not connect to KMS server(s).

Failed to Resolve

About

PowerShell tool to activate Microsoft Office 2016 - 2021 via static Professional Plus KMS client keys.

Resources

License

Stars

Watchers

Forks