locked
[Forum FAQ] Tips on how to automate the Image Capture Wizard RRS feed

  • General discussion

  • Scenario

    We all know about how to deploy image automatically in WDS Server, in fact, we can also capture image automatically to bypass the following wizard:

    Method                                 

    Here we need edit a file called Wdscapture.inf in WinPE image, in this situation, it’s in our capture image. (For example: X:\RemoteInstall\boot\x86\Images\wdscapture.wim)

    In our sample, we use DISM command to mount our capture image:

    Then, go to E:\Mount\Windows\System32 to find the Wdscapture.inf file. By default, it looks like below:

    ---------------------------------------------------------------------------------------------------

    [Capture]

    Unattended=No

    VolumeToCapture=

    SystemRoot=

    ImageName=

    ImageDescription=

    DestinationFile=

    Overwrite=No

    [ExclusionList]

    $ntfs.log

    hiberfil.sys

    pagefile.sys

    "System Volume Information"

    RECYCLER

    winpepge.sys

    %SYSTEMROOT%\CSC

    [WDS]

    UploadToWDSServer=No

    WDSServerName=

    WDSImageGroup=

    Username=

    Password=

    DeleteLocalWimOnSuccess=No

    ----------------------------------------------------------------------------------------------------

    Here are something we should pay attention:

    1) The [Capture] part contains all of the capture settings for the Image Capture Wizard, the most important thing is our unattended setting:

    Unattended=Yes|No

    • Yes. Specifies that the wizard is in unattend mode. All unattend settings are read out of the WDSCapture.inf file.
    • No. Specifies that the wizard is not in unattend mode, and uses values in the file to prepopulate the user interface.

    2) Then we can configure our unattend settings:

    VolumToCapture=

    Specifies the volume to capture into a .wim file. Remember that, in WinPE, your system volume may be assigned as D:\ drive, you might confirm this by using diskpart tool.

    3) Just remember if you want to upload this captured image to WDS Server automatically, don’t use DestinationFile setting, to avoid conflicts, use [WDS] section setting: UploadToWDSServer=Yes

    For more information about the settings, we can refer to this link:

    Automating the Image Capture Wizard

    http://technet.microsoft.com/en-in/library/cc771321(v=ws.10).aspx

    Here is a sample file:

    ----------------------------------------------------------------------------------------------------

    [Capture]

    Unattended=Yes

    VolumeToCapture=D:\

    SystemRoot=windows

    ImageName="windowswds"

    ImageDescription="test"

    DestinationFile=C:\new.wim

    Overwrite=No

    [ExclusionList]

    $ntfs.log

    hiberfil.sys

    pagefile.sys

    "System Volume Information"

    RECYCLER

    winpepge.sys

    %SYSTEMROOT%\CSC

    [WDS]

    UploadToWDSServer=Yes

    WDSServerName=WDS01.xxxxx.com

    WDSImageGroup=Windows 7

    Username=testuser

    Domain=xxxxx.com

    Password=Password01!

    DeleteLocalWimOnSuccess=Yes

    ----------------------------------------------------------------------------------------------------

    When all things done, overwrite the existing Wdscapture.inf, and unmount this image, add the capture image to the Windows Deployment Services server.

    When you boot a computer into this image, the UI screens will be automated and the image will be uploaded to the server with the settings you have specified.

    Here is reference about image capture wizard:

    http://technet.microsoft.com/en-us/video/windows-deployment-services-image-capture-wizard-in-windows-server-2012.aspx


    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Monday, July 14, 2014 3:50 PM