/build/static/layout/Breadcrumb_cap_w.png

Windows 7 MAK Failing

Good day all,

I'm running to a problem with a post-install task to activate Win7. It's a volume license using MAK.

The first question I have is the proper syntax of the script. Per Windows, the script is:

cscript C:\Windows\System32\slmgr.vbs /IPK xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (/ipk
cscript C:\Windows\System32\slmgr.vbs /ato (/ato)

Per at least one post I've seen here, and elsewhere, the syntax is:

cscript C:\Windows\System32\slmgr.vbs -IPK xxxxx-xxxxx-xxxxx-xxxxx-xxxxx  (-ipk)
cscript C:\Windows\System32\slmgr.vbs -ato (-ato)

Which one is correct, or is it varied depending on how the script is called?

Secondly, and I don't have the log, but watching the post installation tasks get installed, the cmd window pops up and it looks like the first argument passes, as it indicates the license was successfully applied. Then the second window comes up and very quickly it's gone, the task is marked failed, and it moves onto the next task.

There isn't a firewall or proxy in place, so I'm not sure how to troubleshoot this from a network communication standpoint.

Thanks,

-- Ray

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: SMal.tmcc 8 years ago
Red Belt
3

Top Answer

create a batch script, you are probably failing due to the second command is trying to process and first is not closed out

I use this for my laptops to activate mak post

start /wait cscript %SystemRoot%\System32\slmgr.vbs -IPK xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
start /wait cscript %SystemRoot%\System32\slmgr.vbs -ATO


Comments:
  • use the start /wait to keep them in sequence - SMal.tmcc 8 years ago
    • Thank you. I kind of had a feeling I needed a pause but hadn't gotten that far in determining if and how.

      I will try this. - rskwire 8 years ago
    • Thank you so much. That was exactly what I need! - rskwire 8 years ago
      • can you mark this answered - SMal.tmcc 8 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ