Help with Dism /Set-Edition /Channel command. [Done]

Discussion in 'Scripting' started by Flipp3r, Sep 30, 2021.

  1. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,788
    807
    60
    #1 Flipp3r, Sep 30, 2021
    Last edited: Sep 30, 2021
    Hi. I've done a Google search and can't find any documentation for Channel options.
    I'm trying to set the Channel (OEM_COA_NSLP), in an offline, mounted image that is set to Retail Channel.
    Code:
    dism /image:mount /set-edition:Core /Channel:oem_coa_nslp
    dism /image:mount /set-edition:Core /Channel:oem
    Either of those commands sets the Channel to OEM_DM.
    What options are there? /Channel:Retail, /Channel:Volume?
    Dism /? does not help...

    I know if I set the Product key it will change channel:
    Code:
    Dism /Image:%PTH%Mount /Set-ProductKey:46J3N-RY6B3-BJFDY-VBFT9-V22HG
    but what if I don't have the key for a different edition...
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    38,790
    67,926
    450
    I only know of the :OEM, :VOLUME and :RETAIL channels.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,788
    807
    60
    It's strange because Dism is accepting OEM, OEM_COA, OEM_COA_NSLP but the end result is Channel:OEM_DM.
    Maybe it's just looking at the first 3 characters, the same as diskpart does ie, "sel dis 0" vs "select disk 0"...
     
  4. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,981
    5,170
    150
    I guess if there's no matching product key found for the channel, it reverts to "Read OEM key from BIOS/UEFI" (that's OEM:DM).

    I have one system with a license for "refurbished hardware". It shows OEM_COA_NSLP) in QueryTool.
    Code:
    Licensing Channel {RCode}  : OEM_COA_NSLP  {0x00000000}
    License Status Reason      : Valid key for product's licensing channel was used for activation.
    The license channels are possible with the matching product key installed.
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    13,119
    64,195
    340
    /Channel is not officially acknowledged by Microsoft (yet? ever?)
    it's added since v1803 (the evolution of Virtual Editions)
    https://forums.mydigitallife.net/posts/1429089/

    effective Channel values:
    Code:
    Volume:GVLK or Volume
    Volume:MAK
    Retail
    OEM
    
    for OEM channel it does no matter what suffix specify, TransmogProvider.dll indeed compare the first three characters, and determine the default OEM key by itself

    OEM_COA_NSLP (display) = OEM_NONSLP (pkeyconfig)

    in my test, Enterprise alawys gets OEM_NONSLP, while other editions gets OEM_DM

    however, you can override that by using /ProductKey parameter

    to conclude:
    Code:
    dism /image:D:\Mount /set-edition:Enterprise /Channel=OEM
    dism /image:D:\Mount /set-edition:Enterprise /Channel=Volume:GVLK
    dism /image:D:\Mount /set-edition:Enterprise /ProductKey=BQFBB-6N34Y-TJWPY-WC9RG-PDKRY
    dism /image:D:\Mount /set-edition:Professional /Channel=Volume
    dism /image:D:\Mount /set-edition:Professional /ProductKey=RHGJR-N7FVY-Q3B8F-KBQ6V-46YP4
    dism /image:D:\Mount /set-edition:ProfessionalWorkstation /Channel=Volume:MAK
    dism /image:D:\Mount /set-edition:ProfessionalWorkstation /Channel=Retail
    
    P.S. some scenarios
    Code:
    Setting an edition online is supported in audit mode.
    Setting an edition online is supported on Server editions.
    Setting an edition is not supported with online Domain Controller images.
    Setting an edition is not supported with online images.
    Setting the product key is not supported online.
    Cannot use /set-edition or /set-produckey with a non-generalized offline image.
    The /ProductKey option cannot be specified with the /Channel option.
    Product key must be provided in online mode.
    Product key not required in audit mode.
    Uninitialized product key is allowed in audit mode.
    
     
  6. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,788
    807
    60
    @abbodi1406, Thanks for the extensive info. I have been using /Set-Productkey for years & I think it was one of your scripts that lead me to try /Channel options.
    At work I only see OEM_DM & COA so I was hoping to use /Channel to set IoTEnterprise to OEM_COA_NSLP (from Retail) since I don't have a default Product Key for it.
     
  7. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,981
    5,170
    150
    #7 Carlos Detweiller, Oct 1, 2021
    Last edited: Oct 1, 2021
    For pure switching, you could use a temporary generated key.

    Win 10 RTM IoTEnterprise OEM:NONSLP (GroupID 0x110b)
    Code:
    DISCLAIMER!!!
    This key is generated, and is easily identifiable as being generated!
    Key ID is 0x0 and Secret is 0xDEAFBABE - Never try to activate with it.
    
    removed

    @Admins - If not allowed or desired, please remove it.
     
  8. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,788
    807
    60
    Thanks Carlos but it's now sorted. I'd only use default manufacturer keys...
     
  9. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,981
    5,170
    150
    OK, I removed it.