## Monday, 29 August 2016

### How to change product key in Office or Outlook 2016

Today, I have installed Office 2016 setup to use Outlook 2016 and put in the product key when I open the outlook. After entering the product key, it sends to the product Activation page, the product activation message says that it is valid key but it is already used. So, now I have been forced to change the new product key.

# Find and Reset Office 2016 License Key using VBScript

1. Open a command prompt (Start-> Run: cmd).
2. Run the following commands:
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /dstatus
3. Note it the 5 digit partial product key (You may find multiple keys).
4. Then run the following command after replacing the <partial_key> with the 5 digit key that you got previous step.
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /unpkey:<partial_key>
This will uninstall an installed product key with partial product key you noted earlier. Uninstall all of the keys.

5. Now you should be able to set the license key as usual way. Or you can use following command after replacing the <new_full_key> with your new license key:
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /inpkey:<new_full_key>
Then you need run the below command to activate license.
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /act

### Note:

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

For (x64 Office 2016) : C:\Program Files\Microsoft Office\Office16\
For (x86 Office 2016): C:\Program Files(x86)\Microsoft Office\Office16\

For (x64 Office 2013) : C:\Program Files\Microsoft Office\Office13\
For (x86 Office 2013): C:\Program Files(x86)\Microsoft Office\Office13\