Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
2 Update for new office
source | link

Depending on the combination of Office 2013 and Window version you might have to change the path to Program Files(x86)

Here is the sequence that should work for (x64 Windows -> x64 Office) and (x86 Windows -> x86 Office):

  1. Open cmd prompt

  2. Run the following commands:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /dstatus

Note down the partial product key(s) (there can be multiple)

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /unpkey:partial_key

This will uninstall an installed product key with partial product key you noted earlier. Uninstall all of the keys.

Now you should be able to add it from Control Panel the usual way. Or you can use:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /inpkey:new_full_key

Then you need to activate it.

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /act

Just for update: Still works in Office 2016, you just need to change "Office15" to "Office16".

Depending on the combination of Office 2013 and Window version you might have to change the path to Program Files(x86)

Here is the sequence that should work for (x64 Windows -> x64 Office) and (x86 Windows -> x86 Office):

  1. Open cmd prompt

  2. Run the following commands:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /dstatus

Note down the partial product key(s) (there can be multiple)

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /unpkey:partial_key

This will uninstall an installed product key with partial product key you noted earlier. Uninstall all of the keys.

Now you should be able to add it from Control Panel the usual way. Or you can use:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /inpkey:new_full_key

Then you need to activate it.

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /act

Depending on the combination of Office 2013 and Window version you might have to change the path to Program Files(x86)

Here is the sequence that should work for (x64 Windows -> x64 Office) and (x86 Windows -> x86 Office):

  1. Open cmd prompt

  2. Run the following commands:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /dstatus

Note down the partial product key(s) (there can be multiple)

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /unpkey:partial_key

This will uninstall an installed product key with partial product key you noted earlier. Uninstall all of the keys.

Now you should be able to add it from Control Panel the usual way. Or you can use:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /inpkey:new_full_key

Then you need to activate it.

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /act

Just for update: Still works in Office 2016, you just need to change "Office15" to "Office16".

1
source | link

Depending on the combination of Office 2013 and Window version you might have to change the path to Program Files(x86)

Here is the sequence that should work for (x64 Windows -> x64 Office) and (x86 Windows -> x86 Office):

  1. Open cmd prompt

  2. Run the following commands:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /dstatus

Note down the partial product key(s) (there can be multiple)

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /unpkey:partial_key

This will uninstall an installed product key with partial product key you noted earlier. Uninstall all of the keys.

Now you should be able to add it from Control Panel the usual way. Or you can use:

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /inpkey:new_full_key

Then you need to activate it.

cscript "C:\Program Files\Microsoft Office\Office15\ospp.vbs" /act