Activate Windows 7 with a script


How can we run the activation from Windows 7 with a script? All the clients have Retail software.

LVL 19
*** Hopeleonie ***IT ManagerAsked:
Who is Participating?
Pete LongConnect With a Mentor Technical ConsultantCommented:

This will change the key (if required)

cscript //b c:\windows\system32\slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX <-----Windows 7 VL / MAK key

This will activate

cscript //b c:\windows\system32\slmgr.vbs /ato
hrr1963Connect With a Mentor Commented:
Also this other way works.

In a batch run (.bat) :

slmgr.vbs -ipk <type your product key here>
slmgr.vbs -ato
*** Hopeleonie ***IT ManagerAuthor Commented:

I will try this and let you know.

Thanks a lot you both!
*** Hopeleonie ***IT ManagerAuthor Commented:
Hi PeteLong

both solutions are working.

Thanks to both!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.