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)
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
(Note: ignore the longer URL in the photo; the URL has since been condensed via Github Pages CI/CD)
While not a hard requirement, it is recommended to use one of the official Microsoft Office download links listed below:
- Microsoft Office 2021 (Professional Plus) → ProPlus2021Retail.img
- Microsoft Office 2019 (Professional Plus) → ProPlus2019Retail.img
- Microsoft Office 2016 (Professional Plus) → ProPlusRetail.img
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.
Get-Help information (as of v2.0.2).
Office version rollback introduced in v2.0.0.
Error Correction: Not executed in elevated terminal.
Error Correction: Microsoft Office not installed.
Error Correction: Could not connect to KMS server(s).