[Help-Request:] Pls, could you help me with DISM /enable-features?

Discussion in 'Windows Server' started by moderate, Feb 26, 2014.

  1. moderate

    moderate MDL Guru

    Aug 31, 2009
    2,595
    2,107
    90
    #1 moderate, Feb 26, 2014
    Last edited by a moderator: Apr 20, 2017
    Hello pals,

    I want to integrate (enable) the following features into (Datacenter) ISO:
    9600.16384.130821-1623_x64fre_Server_EN-US_IRM_SSS_DV5.iso

    I have created these dirs on C:\ drive root direktory:
    C:\CAB
    C:\ISO
    C:\Mount
    ...and copied ISO content (files) to C:\ISO (ISO root is equivalent to C:\ISO directory)

    1. Then I have executed following commands successfully:

    Code:
    DISM /Mount-Wim /WimFile:C:\ISO\sources\install.wim /index:1 /MountDir:C:\mount
    dism /image:C:\mount /enable-Feature /Featurename:NetFx3 /Featurename:NetFx3ServerFeatures /Source:C:\ISO\sources\sxs /LimitAccess
    dism /image:C:\mount /enable-Feature /Featurename:TelnetClient
    dism /image:C:\mount /enable-Feature /Featurename:ServerMediaFoundation
    dism /image:C:\mount /enable-Feature /featurename:CoreFileServer /featurename:File-Services /featurename:Dedup-Core
    (...pls, note, that I use rather complete listing of parent features instead /All parameter. I use /LimitAccess only for .NET FW 3.5)

    2. Unfortunatelly, the following commands reported an error ("Feature wasn't enabled. See chaotic DISM log.")

    Code:
    dism /image:C:\mount /enable-Feature /Featurename:SimpleTCP
    dism /image:C:\mount /enable-Feature /Featurename:WindowsMediaPlayer /Featurename:MediaPlayback
    3. And also, the folowing commands have failed too with an error "Source needs to be specified."

    Code:
    dism /image:C:\mount /enable-Feature /Featurename:WirelessNetworking
    dism /image:C:\mount /enable-Feature /Featurename:Xps-Foundation-Xps-Viewer
    dism /image:C:\mount /enable-Feature /Featurename:InkAndHandwritingServices
    dism /image:C:\mount /enable-feature /featurename:DesktopExperience /featurename:User-Interfaces-Infra /featurename:Server-Gui-Shell /featurename:ServerCore-FullServer
    (So, then I appended as source the parameter:
    Code:
    /Source:C:\ISO\sources\sxs
    and then after it failed again:
    Code:
    /Source:C:\Mount\Windows\WinSxS
    ...without any success...

    Could any nice guy correct the commands in sections 2. and 3. to make them work correctly?
    Thanks for ANY useful answers.
     
  2. moderate

    moderate MDL Guru

    Aug 31, 2009
    2,595
    2,107
    90
    #2 moderate, Mar 1, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Correct solution is to use modified Install.WIM (with or without EI.CFG):
    Code:
    DISM /Delete-Image /ImageFile:C:\ISO\sources\install.wim /Index:3
    DISM /Delete-Image /ImageFile:C:\ISO\sources\install.wim /Index:2
    DISM /Delete-Image /ImageFile:C:\ISO\sources\install.wim /Index:1