Search for a PowerShell activator for Microsoft Office and you will find two very different things: official Microsoft scripts that manage real licenses, and third-party 'activator' tools that bypass licensing entirely. The first group is safe and works; the second can infect your PC and violates Microsoft's license terms. This guide shows how to check and activate Microsoft Office with PowerShell using only official tools, and what to avoid along the way.

PowerShell Activator for Microsoft Office: How to Use One Safely
What Is a PowerShell Activator for Microsoft Office?
A PowerShell activator for Microsoft Office is any script that automates Office licensing tasks from the command line. In its legitimate form, it wraps the official Office Software Protection Platform script (ospp.vbs) that ships with every volume-licensed copy of Office 2016 through Office LTSC 2024. IT administrators use these commands every day to install product keys, point computers at a company KMS server, and trigger activation remotely.
On GitHub and forums, the same phrase also refers to open-source tools such as Microsoft Activation Scripts (MAS), which abuse licensing mechanisms to activate copies of Office without a valid license. These tools are not official and are not covered in this guide. The PowerShell console and the ospp.vbs script are the only components you need for legal activation:

PowerShell activator for Microsoft Office
Is It Safe to Use a PowerShell Activator for Microsoft Office?
Scripts like MAS ask you to paste a single command such as irm https://
Malware delivery: copycat sites clone the original project and swap in trojans, info stealers, or miners.
No license: the 'activated' state depends on counterfeit keys or forged activation data, and Windows Defender now flags several of these methods.
License violation: bypassing activation breaks the Microsoft license terms, which matters for any work or school computer.
Broken updates: some methods patch Office files, so security updates can fail or undo the activation.
If your goal is simply a free office suite, skipping the gray area entirely is easier and safer. We show a full free option near the end of this guide. For background on how cracked Office builds circulate, see this overview of the Microsoft Office cracked version and its risks.

Risks of third-party activator scripts
How to Check Microsoft Office Activation Status with PowerShell
Before changing anything, find out whether Office is licensed and which key is installed. The official ospp.vbs script does this on volume-licensed editions (Office 2016, 2019, 2021, and Office LTSC 2024, including Project and Visio):
Open PowerShell as administrator: press Win + X and choose Windows PowerShell (Admin) or Terminal (Admin).
Go to the Office folder. On 64-bit Windows with 64-bit Office, run:
cd 'C:\Program Files\Microsoft Office\root\Office16'
For 32-bit Office on 64-bit Windows, use Program Files (x86) instead.Run the status check:
cscript ospp.vbs /dstatus
You will see the license name, the last five characters of the key, and the license status.
A healthy installation shows a line like LICENSE STATUS: ---LICENSED---:

Check Office activation status ospp.vbs
How to Activate Volume-Licensed Office with a PowerShell Activator
If the status shows ---NOT ISSUED--- or a missing key, activate with your organization's real license. Microsoft supports two volume activation methods, MAK (one-time keys) and KMS (a local server that renews activation every 180 days). Get the key or KMS host name from your IT department, then run from the same Office16 folder in an elevated PowerShell:
Install a MAK key (if your organization uses MAK):
cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXXPoint to the KMS host (if your organization uses KMS):
cscript ospp.vbs /sethst:kms.yourcompany.comTrigger activation:
cscript ospp.vbs /act
A successful run ends with Product activation successful.Verify: run
cscript ospp.vbs /dstatusagain and confirm the status is licensed.
Never paste a product key or KMS host found on random 'free key' websites: in most regions, using a stolen volume key is not a workaround, it is software piracy. The diagram below shows how the legitimate PowerShell path reaches a license:

Activate Office with KMS server PowerShell
How to Activate Microsoft 365 Apps with PowerShell
Subscription editions (Microsoft 365 Apps) do not use product keys or ospp.vbs at all, so no activator script is needed. Activation is tied to the account that owns the subscription:
Open any Office app, such as Word, and click Sign in in the top-right corner.

Use the account with your Microsoft 365 subscription, or the account your company assigned you.
Check status: go to File > Account and confirm the product shows Product Activated. For command-line diagnostics, Microsoft provides the official vnextdiag.ps1 PowerShell script to inspect license state on Microsoft 365 Apps.

If activation fails, an expired subscription or sign-in with the wrong account is the usual cause, not a broken script. For a similar walkthrough of volume licensing during installation, see this guide to installing Office LTSC Preview.
The Best Free Alternative: WPS Office
If you are chasing a PowerShell activator because you need Word, Excel, and PowerPoint without paying for Microsoft 365, try WPS Office instead. It is free to download and use for everyday work, installs in minutes, and needs no activation script, product key, or license server. Here is what the free version gives you:
Three full apps in one suite: WPS Writer for documents, WPS Spreadsheet for formulas and data, and WPS Presentation for slides. All three use the Microsoft-like ribbon interface, so there is almost no learning curve.
Complete Microsoft format support: WPS Office opens and saves .docx, .xlsx, and .pptx natively, and keeps layout, formulas, charts, and styles intact when the file moves between WPS and Microsoft Office.
Built-in PDF toolkit: convert documents to PDF, export spreadsheets and slides to PDF, edit PDF text, merge pages, and add e-signatures without installing a separate PDF editor.
Free templates library: thousands of ready-made templates for reports, resumes, invoices, schedules, and presentations, so you can start from a professional layout instead of a blank page.
Cross-platform and cloud sync: one account covers Windows, macOS, Linux, Android, and iOS, and WPS Cloud keeps recent files and edits in sync across your phone and computer.
Lightweight installer: the suite is much smaller than a full Microsoft Office installation, which makes it practical for older laptops and low-storage machines.
Switching costs are low: open an existing DOCX or XLSX in WPS Office and continue working where you left off, then keep saving in Microsoft formats so classmates, colleagues, and clients never notice the difference. For teams that still need to exchange files with Microsoft 365 users, this round-trip compatibility is the main reason WPS Office is a safe replacement rather than a compromise.

WPS Office suite
FAQs
Is there an official PowerShell activator for Microsoft Office?
Not by that name. Microsoft ships the ospp.vbs script for volume-licensed Office and vnextdiag.ps1 for Microsoft 365 Apps. Anything that 'activates' Office without a valid key is an unofficial bypass, not an official tool.
Is Microsoft Activation Scripts (MAS) safe to use?
No. MAS executes remote code with admin rights, and clone sites have distributed malware through similar one-line commands. It also violates Microsoft's license terms, even when the script itself is clean.
Why does ospp.vbs say 'Product activation failed'?
Common causes are an unreachable KMS host, a wrong or blocked product key, or a changed system clock. Run cscript ospp.vbs /dstatus to see the installed key, then confirm the KMS host name and network access with your IT department.
Can I activate Microsoft 365 with a product key in PowerShell?
No. Microsoft 365 Apps are activated by signing in with the account that owns the subscription. ospp.vbs does not apply to subscription editions; use vnextdiag.ps1 for command-line diagnostics.
What is a free legal alternative to activating Office?
WPS Office is free for writing documents, spreadsheets, and presentations, opens and saves Microsoft formats directly, and requires no activation script or product key at all.





