L

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

1206 views · updated 2026-07-02 · published 2026-07-02 · Microsoft Office Lästid: 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

Öppen 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.

Anteckningar

  • 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.

Relaterade produkter

[Retail] Microsoft Office 2024 Home 2PC – aktivering [Retail] Microsoft Office 2024 Home & Business för 2 PC – aktivering Microsoft Office 2024 Standard LTSC 1PC - engångsköp – aktivering [MAK] Office 2024 Standard 500 PC – aktivering Microsoft Office 2024 Professional Plus LTSC 1PC - engångsköp – aktivering Microsoft Office 2024 Home 1PC or MAC – aktivering [Bind] Microsoft Office 2024 Home & Business för Mac/PC – onlineaktivering Microsoft Office Professional Plus 2024 (PC) – onlineaktivering Microsoft Office 2021 Home and Business PC/Mac (Transferable) – aktivering Windows 10 Pro + Microsoft Office 2019 Home and Business Bundle - Digital Licences 1PC [Retail] Office 2019 Home & Business för 1 PC - Online – aktivering [Retail] Microsoft Office 2021 Professional Plus 5PC – onlineaktivering 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 1PC (livstid) – aktivering [Bind] Office 2019 Home & Business for 1 Mac – onlineaktivering [Bind] Office 2021 Professional Plus för 1 PC livstid + Key Card – aktivering [Bind] Office 2021 Home & Business for 1 Mac livstid + Key Card – aktivering Microsoft Office 2021 Professional Plus 1PC - engångsköp – aktivering Windows 11 Pro + Microsoft Office 2021 Professional Bundle – Digital Licenses 1PC [Bind] Office 2021 Home & Business for 1 Mac (livstid) – onlineaktivering [Retail] Microsoft Office 2021 Professional Plus 1PC – onlineaktivering [Bind] Microsoft Office 2021 Professional Plus 1PC (livstid) – aktivering [Bind] Microsoft Office 2019 Professional Plus 1PC (livstid) – aktivering Microsoft Office 2019 Professional Plus 1PC (Online) – aktivering Office 2010 Professional Plus 1PC – aktivering [Retail] Office 2013 Home & Business 1PC Activate (engångsköp) [Retail] Office 2013 Professional Plus 1PC Activate (engångsköp) Microsoft Office 2016 Professional Plus 1PC (Online) – aktivering [Retail] Microsoft Office 2013 Professional Plus 1PC (Online) – aktivering Windows 10 Pro + Microsoft Office 2016 Professional Bundle - Digital Licenses 1PC [Phone] Office 2019 Home & Business för 1 PC – aktivering Office 2016 Home & Business för 1 PC – aktivering [Bind] Office 2016 Home & Student 1 PC – onlineaktivering [Bind] Office 2019 Home & Student 1 PC (livstid) – onlineaktivering [Bind] Office 2019 Home & Business for 1 Mac/PC – onlineaktivering [Retail] Office 2019 Pro Plus för 2 PC – onlineaktivering [Retail] Office 2016 Pro Plus för 2 PC – onlineaktivering Microsoft Office 2016 Professional Plus 1PC (engångsköp) – aktivering Windows 10 Pro + Microsoft Office 2019 Professional Bundle – Digital Licenses 1PC Microsoft Office 2019 Professional Plus 1PC (engångsköp) – aktivering [Bind] Office 2016 Home & Business for 1 Mac – onlineaktivering

Tack för din feedback! 🙌

Läs mer