|It could be done with batch.|
But you will need to find location of the regedit key, and enter the code into regedit.
Google: Microsoft Office 2010 office key regedit
I dont have time atm (sorry) , so if you research abit, ill look for the script.
Happy is ONE who says I am an OttoMAN.