Microsoft Office 2016 SetupMicrosoft Office 2019 SetupMicrosoft Office 2021 Setup

Change your Office product key

1. Both Office and Windows version is 64 bit 

  1. Copy the following command, paste the command into the Command Prompt window, and then press Enter.

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

    The command prompt displays the last five characters of the product key that was used to install Office on the PC. Our example below uses XXXXX to represent these characters.

    Command Prompt showing last five digits of product key

  2. Copy the following command, paste the command into the Command Prompt window, and replace XXXXX with the last 5 digits of the product key that was shown in the previous step. Press Enter to remove the product key.

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /unpkey:XXXXX

  3. Copy the following command, paste the command into the Command Prompt window, and replace XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with an unused product key from your list. Press Enter to change the key.

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

    d. Now start an Office app, such as Word, and select Next to activate Office over the Internet.

    e. Repeat this process for each PC where activation is failing.