Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
oskingen

activate Windows automatically

Recommended Posts

Hi, i' have configured MDT 2010 to deploy win 7 in my enterprise. But there is something i want to do but i did not find a solution yet.

I want that 7 automatically activactes itself during the installation software sequence. How to do that ?

Edited by hannubys

Share this post


Link to post
Share on other sites

MDT itself can't activate Windows, as it's just a framework to run scripts in the OS (this part of setup is still controlled entirely by the Windows setup engine). However, it's purpose *is* to run scripts, so you could very easily leverage this by creating a new task in a task sequence to run slmgr.vbs to activate Windows - creating a set of tasks in the State Restore phase tree to run slmgr would work. The first step would be to run "cscript.exe %windir%\system32\slmgr.vbs /ipk <product key>" if we're not talking about VL keys (the slmgr switches would differ for a VL key depending on your KMS infrastructure, obviously), and then a second step to run "cscript.exe %windir%\system32\slmgr.vbs /ato" to activate that key.

Share this post


Link to post
Share on other sites

actually i'm using this command "slmgr.vbs /ato" like an application install but i have to click "OK" when it says activation ok elseif the process stay in stand by to continue.

I will try your way in a task sequence.

Also, it's a Multiple Activation key and i don't use KMS in the infrastructure, is that bad to use this method (I hope not because i already started to deploy Win 7 and activate it this way)?

Edited by hannubys

Share this post


Link to post
Share on other sites
actually i'm using this command "slmgr.vbs /ato" like an application install but i have to click "OK" when it says activation ok elseif the process stay in stand by to continue.

I will try your way in a task sequence.

Also, it's a Multiple Activation key and i don't use KMS in the infrastructure, is that bad to use this method (I hope not because i already started to deploy Win 7 and activate it this way)?

No, this method is fine - in fact, you almost need to use slmgr to activate if you're going for automation. You should be able to do the above (assuming your MAK key is in the xml file correctly) and get fairly unattended setup and activation. If you still get stuck with an "OK" click, consider wrapping your slmgr steps in an autoit script or similar.

Share this post


Link to post
Share on other sites

Actually, i did exactly what you suggested me. I put this command in a task sequence instead of letting it in the application list and everything went fine. No more "Ok" to click.

Thank Cluberti!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×