Activate Microsoft Office 2010 with Batch Script

microsoft-office-2010


Follow the instructions below to activate Microsoft Office 2010 with a small batch script. This can be useful for large deployment and scripting environments where you might be playing with sysprep or don’t have KMS server available.

Activate Microsoft Office 2010

Step 1

Create a batch file. In my example, I named mine act_office.bat.

act_office

Step 2

Copy the following code into your file, replacing ***KEY*** with your license key.

slmgr -ipk ***KEY***
slmgr -ato
cscript "C:\Program Files\Microsoft Office\Office14\OSPP.VBS" /inpkey:***KEY***
cscript "C:\Program Files (x86)\Microsoft Office\Office14\OSPP.VBS" /inpkey:***KEY***

activate_office

Incoming search terms:

  • script to activate office 2010
  • Office 2010 Activation Script
  • activate office 2010 batch file
  • batch file to activate office 2010
  • Activate Office 2010 Script

  • http://www.facebook.com/kubelwagen Jeff Burke

    The above method fails with an error 0xC004F050 when it does ipk. Then when it does ato, I get a notice that Windows 7 was activated (instead of Office). Oddly, if I enter the key and activate the normal way (through appwiz.cpl, go to Office, then click Change, then Add a Key), that same key will be accepted and activated just fine.

    Is this method attempting to apply and activate an Office key for Windows?

    • http://www.facebook.com/kubelwagen Jeff Burke

      Found the fix. I did this instead (/act will attempt a KMS activation, then fail if you don’t have a KMS server, and then will attempt a MAK activation).

      cscript “C:Program FilesMicrosoft OfficeOffice14OSPP.VBS” /inpkey:***KEY***
      cscript “C:Program FilesMicrosoft OfficeOffice14OSPP.VBS” /act

      • Mr J.

        tried this..still didn’t work. every time I bring up Offc 2010 it still asks to change product key