• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1124
  • Last Modified:

Activate Windows 7 with a script

Hi

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

Thanks,
0
*** Hopeleonie ***
Asked:
*** Hopeleonie ***
  • 2
2 Solutions
 
Pete LongTechnical 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
0
 
hrr1963Commented:
Also this other way works.

In a batch run (.bat) :

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

I will try this and let you know.

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

both solutions are working.

Thanks to both!
0
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.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now