How to Remove License Key from Office 2013, 2016 or 2019 using CMD

Nov 01, 20236 mins read

Microsoft Office is an essential productivity suite, but there are instances when you may need to remove a license key, whether for troubleshooting or transferring purposes. In this guide, we'll walk you through the steps to remove a license key from Microsoft Office 2013, 2016, or 2019 using Command Prompt (CMD)

How to update / replace Office license key before the expiration date? Is there a way to change the product key without reinstalling Office suite? Do you have an old PC you want to sell, but also want to transfer your Office license to your new PC?

In this tutorial we’ll show you an easy way to remove the existing product key registered with your Microsoft Office 2019 / 2016 / 2013 application

Open Command Prompt as Administrator

To begin, you'll need to open Command Prompt with administrative privileges. To do this, follow these steps:

  • Press the Windows key.
  • Type "cmd" or "Command Prompt" into the search bar.
  • Right-click on "Command Prompt" in the search results.
  • Select “Run as administrator.”

Use CD command to change directory to your Office installation directory:

For 32 Bits version of Office 2013:

CD C:\Program Files (x86)\Microsoft Office\Office15

 

For 64 Bits version of  Office 2013:

CD C:\Program Files\Microsoft Office\Office15

 

For 32 Bits version of Office 2016 and 2019:

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

 

For 64 Bits version of Office 2016 and 2019:

CD C:\Program Files\Microsoft Office\Office16

 

After successful navigating to the required directory, you can check status, change product key, or uninstall product key by running the script called ospp.vbs inside that directory.

To check Status:

cscript ospp.vbs /dstatus

 

You’ll see some license details such as the license type (a retail copy, a volume licensed copy, or Office subscriptions copy) and the last 5 characters of the product key.

 

To remove existing Product Key:

cscript ospp.vbs /unpkey:{last five characters of product key}

You will be told that your Office product key has been uninstalled. Now, Open any Office application like Word and it’ll ask you to enter new product key.

Image NewsLetter
Icon primary
Newsletter

Subscribe our newsletter

By clicking the button, you are agreeing with our Term & Conditions