Published on - Leave a comment

Activate Office 2016 by Command

Office 2016 product key: How to change it or introduce a new one

There are times when we mistakenly enter a product key to activate Office and it is consequently not activated. This does not mean that the system does not remind us at all times that Office is not activated. The problem is that there are times when we are not given the option to enter a new key, so the program enters a loop from which you can only leave by uninstalling and reinstalling again the office application so that it asks us again for a new key.

Well, we're in luck, since there is a way to activate Office using commands through the Windows shell.

Activate Office by Command

To activate Office by means of commands we will go to the Cortana search engine and enter the cmd command. Then we will execute the Command Prompt as administrator.

Once inside we will write the following command to install the new product key:

cscript "C:Program Files (x86)/Microsoft Office16/ospp.vbs" /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

Changing the X's for the product key that we want to install.

We will use this command in case a 32-bit version of Office is installed (most of the time) on a 64-bit Windows 10.

If we would like to see before installing the new key, the status of the previous installation, which is the wrong one, then we should use this command:

cscript "C:Program Files (x86)Microsoft Office16OSPP.VBS" /dstatus

In this image we check the status of the wrong product key that we have installed and then we install the valid key

Installed product key

To see the newly installed Office product key we will use this command again:

cscript "C:Program Files (x86)Microsoft Office16OSPP.VBS" /dstatus

Here we see how the valid product key we entered has activated the copy of Office

Leave a Reply