T

How to Remove an Old or Cracked Microsoft Office Product Key via CMD

77 views · updated 2026-07-02 · published 2026-07-02 · Microsoft Office Reading time: 2 min English සිංහල

If Windows shows an old, duplicate, or previously-used (cracked) Microsoft Office product key, you can remove it from the command line before entering your new genuine key. This works for Microsoft Office 2010 through 2024 (one-time purchase / perpetual editions).

Part 1: Check the Office license status

Open Command Prompt as administrator and change into your Office program folder with cd. The path depends on your Office version:

Office 2016 / 2019 / 2021 / 2024 (64-bit):

cd C:\Program Files\Microsoft Office\Office16

Office 2016 / 2019 / 2021 / 2024 (32-bit):

cd C:\Program Files (x86)\Microsoft Office\Office16

Note: “Office16” is the folder name for Office 2016–2024. For Office 2013 use Office15, and for Office 2010 use Office14.

Now check the current license status:

cscript ospp.vbs /dstatus

This lists any installed product keys along with the last 5 characters of each key.

Part 2: Remove the existing / cracked product key

Use the /unpkey switch with the last five characters of the key you want to remove (from the /dstatus output):

cscript ospp.vbs /unpkey:XXXXX

Replace XXXXX with the last five characters of the product key. This removes that activation key from your system. If more than one key is listed, repeat the command for each key you want to remove.

Part 3: Activate with your genuine key

Once the old key is removed, open any Office app (Word, Excel, etc.), go to File → Account, choose Change Product Key, and enter the new 25-character product key we sent you. Office will then activate as genuine.

Notes

  • Always run Command Prompt as administrator, or the commands will fail.
  • If ospp.vbs is not found, make sure you are in the correct Office folder (Office14 / Office15 / Office16).
  • Removing the key does not uninstall Office — it only clears the activation so you can enter a fresh key.

Related products

[Retail] Microsoft Office 2024 Home 2PC Activation [Retail] Microsoft Office 2024 Home & Business for 2PC Activaiton Microsoft Office 2024 Standard LTSC Activation 1PC - Onetime [MAK] Office 2024 Standard 500PCs Activation Microsoft Office 2024 Professional Plus LTSC Activation 1PC - Onetime Microsoft Office 2024 Home 1PC or MAC Activation Microsoft Office 2024 LTSC Professional Plus (PC) 1 Device Activation Microsoft Office Professional Plus 2024 (PC) Onetime Activaiton [Bind] Microsoft Office 2024 Home & Business for Mac/PC Online Activaiton Microsoft Office Professional Plus 2024 (PC) Online Activaiton Microsoft Office 2021 Home and Business PC/Mac Activation (Transferable) [Bind] Office 2021 Professional Plus for 1 PC DVD Retail Pack Lifetime Activation Windows 10 Pro + Microsoft Office 2019 Home and Business Bundle - Digital Licences 1PC [Retail] Office 2019 Home & Business for 1PC Activation - Online Microsoft Office 2019 Home and Student 1 PC Activation DVD Retail Pack Microsoft Office 2019 Home and Business 1 PC Activation DVD Retail Pack [Retail] Microsoft Office 2021 Professional Plus Online Activation 5PC Windows 8.1 Pro + Microsoft Office 2016 Professional Bundle – Digital Licenses 1PC Windows 10 Pro + Microsoft Office 2021 Professional Bundle – Digital Licenses 1PC [Bind] Microsoft Office 2016 Professional Plus Activation 1PC (Lifetime) [Bind] Office 2019 Home & Business for 1 Mac Online Activation [Bind] Office 2021 Professional Plus for 1 PC Lifetime Activation + Key Card [Bind] Office 2021 Home & Business for 1 Mac Lifetime Activation + Key Card Microsoft Office 2021 Professional Plus Activation 1PC - Onetime Windows 11 Pro + Microsoft Office 2021 Professional Bundle – Digital Licenses 1PC [Bind] Office 2021 Home & Business for 1 Mac Online Activation (Lifetime) [Retail] Microsoft Office 2021 Professional Plus Online Activation 1PC [Bind] Microsoft Office 2021 Professional Plus Activation 1PC (Lifetime) [Bind] Microsoft Office 2019 Professional Plus Activation 1PC (Lifetime) Microsoft Office 2019 Professional Plus Activation 1PC (Online) Office 2010 Professional Plus 1PC Activation [Retail] Office 2013 Home & Business 1PC Activate (Onetime) [Retail] Office 2013 Professional Plus 1PC Activate (Onetime) Microsoft Office 2016 Professional Plus 1PC Activation (Online) [Retail] Microsoft Office 2013 Professional Plus 1PC Activation (Online) Windows 10 Pro + Microsoft Office 2016 Professional Bundle - Digital Licenses 1PC [Phone] Office 2019 Home & Business for 1PC Activation Office 2016 Home & Business for 1PC Activation [Bind] Office 2016 Home & Student 1 PC Online Activation [Bind] Office 2019 Home & Student 1 PC Online Activation (Lifetime) [Bind] Office 2019 Home & Business for 1 Mac/PC Online Activation [Retail] Office 2019 Pro Plus Activates 2 PCs Online Activation [Retail] Office 2016 Pro Plus Activates 2 PCs Online Activation Microsoft Office 2016 Professional Plus Activation 1PC (Onetime) Windows 10 Pro + Microsoft Office 2019 Professional Bundle – Digital Licenses 1PC Microsoft Office 2019 Professional Plus Activation 1PC (Onetime) [Bind] Office 2016 Home & Business for 1 Mac Online Activation

Thanks for your feedback! 🙌

Read more

TechHub Assistant
Online · AI assistant
Thinking
⬇ Downloads 📦 Orders 🛒 Buy License 🎫 Create Ticket 🙋 Contact
AI-generated · may be inaccurate. Talk to a human