Thursday, October 27, 2011

Automate Registering Windows 7 and Office 2010

If you still not using a KMS server you will need to manually register all your windows 7 computers.
Here is a very simple bat script that will allow you to do that.
First you will need to be logged on with admin priviledges, have internet access, and run the .Bat file as administrator.

The command is very simple. It is

echo off
slmgr -ipk YOUR-PRODUCT-KEY
slmgr -ato
exit

Right, Now for Office 2010. The command is

echo off
c:
cd "c:\program files\microsoft office\office14"
cscript ospp.vbs /inpkey:YOUR-PRODUCT-KEY
cscript ospp.vbs /act

That's it. The -ipk changes your product key to what ever you specify. (you'll need to put the dashes in eg 1234-123-1234). The -ato activates the new key. The same applies for office 2010, except with /inpkey and /act

That's it. You can automate this through group policy, log on scripts or simply double clicking the file. Easy

No comments: