Product Key Issues

Remove an Office 2016 Product Key and Activate Microsoft 365

Khadija KhanKhadija Khan Nov 13, 2026 869 views

Question details

User needs to remove an installed Office 2016 product key because Microsoft 365 repeatedly activates with the old Office 2016 license.

Remove an Office 2016 Product Key and Activate Microsoft 365
Product
Microsoft Office 2016 and Microsoft 365
Device & OS
Windows
Scenario
The user installed Microsoft 365, but activation keeps using an existing Office 2016 license instead of the Microsoft 365 subscription account.
Observed behavior
Microsoft 365 activates with an old Office 2016 license, and Office does not switch to the Microsoft 365 account until the old product key is removed.
Before you start

Close all Office applications and sign in to Windows with an administrator account. Keep your Microsoft 365 sign-in email and password available for reactivation.

Solution 1Recommended

Remove the Office 2016 product key with Command Prompt

Use this method when Microsoft 365 repeatedly activates with an existing Office 2016 license and you need to clear the old key before signing in.

The Office Software Protection Platform script, ospp.vbs, displays installed Office licenses and can remove the old Office 2016 product key. After removal, restart the computer and sign in to Microsoft 365 to activate the correct license.

1
Open Command Prompt as administrator

Right-click the Start button, select Command Prompt (Admin) or Windows PowerShell (Admin), and confirm the User Account Control prompt.

2
Go to the Office installation folder

Type cd C:\Program Files\Microsoft Office\Office16 and press Enter. For 32-bit Office on 64-bit Windows, use cd C:\Program Files (x86)\Microsoft Office\Office16 instead.

3
Display the installed Office license

Run cscript ospp.vbs /dstatus and note the last five characters of the installed Office 2016 product key.

4
Remove the old product key

Run cscript ospp.vbs /unpkey:XXXXX, replacing XXXXX with the five characters shown in the dstatus output.

5
Restart and activate Microsoft 365

Restart the computer, open an Office app, and sign in with the Microsoft 365 account to activate Office.

Remove the Office 2016 product key with Command Prompt
Old key removed: After restarting, Microsoft 365 can activate with the correct subscription license instead of the Office 2016 product key.
Free Microsoft Office alternative

Switch to WPS Office When Microsoft 365 Keeps Activating with an Office 2016 License

If Office 2016 product key conflicts or Microsoft 365 activation issues interrupt your work, WPS Office is a free, lightweight alternative that opens Word, Excel, and PowerPoint files with a familiar interface and no product key cleanup.

  1. 1. Download WPS Office: Go to the official WPS Office website and click Download WPS Office Free, then run the installer.
  2. 2. Open existing Office files: Launch WPS Office and open your .docx, .xlsx, or .pptx files directly from the Home tab or File > Open.
  3. 3. Work without activation conflicts: Use the Writer, Spreadsheet, or Presentation tabs to edit, save, and export documents without removing an Office product key.
No Office 2016 or Microsoft 365 product key activation steps required for everyday editing.Opens and saves .docx, .xlsx, and .pptx files with high Microsoft Office compatibility.Free to download and lightweight on Windows with a familiar Office-style ribbon interface.Includes built-in PDF tools and templates for seamless document work.
QA img-9

Frequently Asked Questions

Why does Microsoft 365 keep activating with my old Office 2016 license?

A previously installed Office 2016 product key remains registered in Windows. Display it by running cscript ospp.vbs /dstatus in the Office16 folder, then remove it with /unpkey.

What command removes an Office 2016 product key?

Open Command Prompt as administrator, go to C:\Program Files\Microsoft Office\Office16 or C:\Program Files (x86)\Microsoft Office\Office16, run cscript ospp.vbs /dstatus, then run cscript ospp.vbs /unpkey:XXXXX using the five displayed characters.

Do I need to restart after removing the Office 2016 product key?

Yes, restart the computer after running the /unpkey command. Then open an Office app and sign in with the Microsoft 365 account to activate the correct license.

Can WPS Office replace Microsoft 365 if activation continues to fail?

Yes, WPS Office is free and opens .docx, .xlsx, and .pptx files with a similar ribbon interface, so you can continue working while you resolve Microsoft activation issues.