• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1103
  • 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 LongConsultantCommented:

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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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