Success Exit Code From SLMGR Command?

Comments

7 comments

  • Bouma, Colby

    That's because slmgr pops up a window when it's done. Try this:

    cscript //B "%windir%\system32\slmgr.vbs" /ipk 67YRR-JYR7R-H7RJR-RGRV2-R7RWR
    0
    Comment actions Permalink
  • Ian Matthews

    Thanks for the quick response.  I just tried your suggestion and while it now completes without error in PDQ, it does not change the product key. 

    The original script does change the product key and activate it which are two separate commands so it should not be hung up on a popup... unless the Activate command is (ATO) is causing it.  I will test and get back to you very shortly.

    0
    Comment actions Permalink
  • Ian Matthews

    Nope, I tried it with:

    slmgr -ipk 67YRR-JYR7R-H7RJR-RGRV2-R7RWR
    cscript //B "%windir%\system32\slmgr.vbs" -ato

    and it still hangs in PDQ... but it did change the key!

     

    0
    Comment actions Permalink
  • Pushpak Patil

    Can you try below 2 batch scripts as install step with PDQ.



    http://pastebin.com/uDkC25Mq
    http://pastebin.com/K7cbH75a
    0
    Comment actions Permalink
  • Rick Level

    Hi All, I am having a hard time with this also.  I actually don't even care if it gives me a return code or ever exits the 'running' phase lol, but I can't seem to get it to do what I want.

    I have a bunch of Windows 10 Pro computers licensed via GVLK and I'm just trying to give them an Enterprise key to convert them from pro to ent.   It seems like I should be able to do it with a basic

     

    slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX (a win10 Ent MAK key)

    but it never seems to convert it

    0
    Comment actions Permalink
  • Stephen Valdinger

    Correct me if I'm wrong here folks, but don't changes to EDITIONS of windows have to be done through DISM? I know I've done it in the past converting server 2008 boxes from standard to datacenter, and I had to use DISM to accomplish that.

     

    Dism /online /Set-Edition:Enterprise /AcceptEula /ProductKey:12345-67890-12345-67890-12345

    https://blogs.technet.microsoft.com/supportingwindows/2015/10/16/how-to-convert-windows-10-pro-to-windows-10-enterprise-using-icd/

    0
    Comment actions Permalink
  • Ron Masters

    In my case I needed to run slmgr with the /skms parameter to point clients to a different KMS server.
    I created two steps, leaving success code at 0. 

    This worked for me:

    Step 1       cscript.exe "%Systemroot%\system32\slmgr.vbs" /skms <IP Address of KMS Server>:1688
    Step 2       cscript.exe "%Systemroot%\system32\slmgr.vbs" /ato

    0
    Comment actions Permalink

Please sign in to leave a comment.