To change the Office 2010/2013 installed with a MAK key to the corporate KMS office key, the following commands will be needed and can be scripted:

Reference: http://technet.microsoft.com/en-us/library/ee624355.aspx#section2-3

Reference for Office 2016: http://theitbros.com/ms-office-2016-activation-with-kms/

For Office 2010: Run the following ospp.vbs from this folder c:\program files (x86)\Microsoft Office\Office14

For Office 2013: Run the following ospp.vbs from this folder c:\program files (x86)\Microsoft Office\Office15

For Office 2016: Run the following ospp.vbs from this folder c:\program files (x86)\Microsoft Office\Office16

Here are the needed steps in the script.

0. cscript ospp.vbs     ; to display the list of ospp.vbs options

1. cscript ospp.vbs /inpkey:<kms product key>

The required KMS Office 2013 GVLK key you get here: https://technet.microsoft.com/en-us/library/dn385360.aspx

The required KMS Office 2016 GVLK key you get here: https://technet.microsoft.com/en-us/library/dn385360.aspx

2. cscript ospp.vbs /sethst:<kms.dns.name>

This is needed if you want set your kms server name manually

3.  cscript ospp.vbs /act

This step activates you Office Installation.