Microsoft Product Activation Batch File

/ / Tech Blog

With Microsoft Windows and Microsoft Office both needing to be activated on every workstation, this can become a timely task when working on a large site.

Due to this we have created a batch file to automatically activate these products using Microsoft’s scripting commands.

To use the batch file copy the code below into notepad, change the xxxxx-xxxxx-xxxxx-xxxxx-xxxxx to the product key of the product and then save the file as MicrosoftActivation.Bat

@echo off
cls
echo ###############################################################################
echo #                                                                             #
echo #          #### ITSIE Ltd - www.itssie.co.uk - 0845 805 1106 #####            #
echo #                                                                             #
echo ###############################################################################
echo Activating windows
cscript //b c:\windows\system32\slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
cscript //b c:\windows\system32\slmgr.vbs /ato
echo Activating Office
cscript "c:\Program Files\Microsoft Office\Office14\ospp.vbs" /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
cscript "c:\Program Files\Microsoft Office\Office14\ospp.vbs" /act

 

The sample scripts are provided AS IS without warranty of any kind. ITSSIE further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall ITSSIE, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if ITSSIE has been advised of the possibility of such damages.