Scripting Question

Change win7 productkey - Post Installation Task

03/26/2013 4716 views

I have recently started work as a Junior Systems Administrator for a rather large company 300+ employees

Unfortunately, there is nobody currently working here who knows how to use KACE, and my knowledge is mediocre at best.

After days trying to get Windows to deploy successfully via a Scripted Install, I have managed to have a small triumph however I want to make the process as automated as possible, and right now I only have windows installing and microsoft office installing.


Is it possible to change the windows 7 product key, as a post install task? As our scripted image fails to deploy with a Product Key I have had to resort to manually changing our product key for every system deployed.


Answer Summary:
0 Comments   [ + ] Show comments


Community Chosen Answer


If you are using Volume License media, then you can do this as a Post Install Task:

Type:  Batch

Runtime:  Windows

Command: cscript C:\Windows\System32\slmgr.vbs /IPK XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript C:\Windows\System32\slmgr.vbs /ato


Just make sure to fill in your key in for the XXX and that should do it.

Answered 03/27/2013 by: andrew_lubchansky
2nd Degree Black Belt

All Answers


Sounds they dropped you in the deep end!

If you have access to MDOP, check it out, it has access to scripted deployments etc, ie deploy system + software. But KACE can do that too, best to use that since you have it!

check out slmgr, all windows 7 installs have it. It will do that you want it to do.

slmgr /ipk is what your looking for.


Good luck!
please make it as answered (if it is) as it help others wading through the Q&A.

Answered 03/27/2013 by: rileyz
Red Belt


Also, forgot to mention since you are still new to KACE, you should take advantage of our free KKE sessions.  We have recorded and live sessions:


Tuesdays and Wednesdays are topic based and Thursdays are Open Forum Q&A. This should allow you to get up to speed very quickly. 

Answered 03/27/2013 by: andrew_lubchansky
2nd Degree Black Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ