The easiest way to script this would likely be using the
ospp.vbs /inpkey command. Even if your remote machines are WinXP, you just need to ensure remote WMI works correctly:
http://msdn.microsoft.com/en-us/library/aa389286(VS.85).aspx
Here is the list of KMS client keys. Choose the correct key based on your product, and install this key. This key will change your Office installations to look for a KMS host to activate with.
http://technet.microsoft.com/en-us/library/ee624355.aspx#section2-3
To give yourself more time to set up the KMS host, you can run rearm on your client machines after you change to the KMS client key. This will give you 25 days where users will not see notification dialogs to activate:
http://technet.microsoft.com/en-us/library/ee624357.aspx#section4
Ted Way [MSFT], Program Manager, Microsoft Office: Enterprise Licensing, Group Policy, and 64-bit Office