MSFN Forum: activate Windows automatically - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

activate Windows automatically using MDT 2010

#1 User is offline   oskingen 

  • MSFN Friend
  • PipPipPipPip
  • Group: Members
  • Posts: 613
  • Joined: 20-January 08
  • OS:none specified
  • Country: Country Flag

Posted 12 October 2009 - 12:17 AM

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 ?

This post has been edited by hannubys: 12 October 2009 - 08:15 AM



#2 User is offline   ricktendo64 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,120
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 October 2009 - 12:20 AM

I second this...how do we unattendedly activate Win7 over the net

#3 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,934
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 October 2009 - 12:29 AM

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.

#4 User is offline   oskingen 

  • MSFN Friend
  • PipPipPipPip
  • Group: Members
  • Posts: 613
  • Joined: 20-January 08
  • OS:none specified
  • Country: Country Flag

Posted 13 October 2009 - 04:55 PM

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)?

This post has been edited by hannubys: 13 October 2009 - 04:59 PM


#5 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,934
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 October 2009 - 02:09 PM

View Posthannubys, on Oct 13 2009, 06:55 PM, said:

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.

#6 User is offline   oskingen 

  • MSFN Friend
  • PipPipPipPip
  • Group: Members
  • Posts: 613
  • Joined: 20-January 08
  • OS:none specified
  • Country: Country Flag

Posted 19 October 2009 - 04:04 PM

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!

#7 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,934
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 October 2009 - 10:01 AM

:thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy