Activate Windows and Office 2016 Using Script

This script will allow you to activate Windows and Microsoft Office 2016 all at once. This is specially written to activate using MAK keys. The XXXXX-XXXXX-XXXXX-XXXXX-XXXXX represents the MAK key used to activate. The script has been only been tested with Windows 7 but it should work with Windows 8.1 and 10. 

To run as one instance, copy and paste the script below and save it as a .bat file.

C:\Windows\System32\slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
C:\Windows\System32\slmgr.vbs -ato

cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript "C:\Program Files\Microsoft Office\Office16\ospp.vbs" /act