Skip to content

PowerShell tool to activate Microsoft Office Professional Plus 2016 - 2021 via 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

18 Commits
 
 
 
 
 
 

Repository files navigation

Activate-MicrosoftOffice

PowerShell tool to activate Microsoft Office 2016 - 2021 via free 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

Requirements:

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

Usage:

# Elevated Prompt: Execute Latest Script w/ Default Parameters
iex ([System.Net.WebClient]::new().DownloadString('https://tylerdotrar.github.io/Activate-MicrosoftOffice')); Activate-MicrosoftOffice

Banner (Note: ignore the longer URL in the photo; the URL has since been condensed via Github Pages CI/CD)

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

Simple PowerShell script to automatically detect and activate a locally installed Microsoft Office 2016 through 2021 instance with a Professional Plus KMS client key using a publicly available KMS server. Tested on Windows 10 and Windows 11.

  • 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 Professional Plus 2016 - 2021 via KMS client keys.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published