Unattended Servicing Command-Line Options
3/21/2011
If you are installing multiple packages to a Windows image, use Deployment Image Servicing and Management (DISM) to apply an Unattend.xml answer file to the image. Some packages require other packages to be installed first. If there is a dependency requirement, the best way to ensure the correct order of the installation is by using an answer file. When you use DISM to apply an Unattend.xml answer file to an image, the unattended settings in the offlineServicing configuration pass are applied to the Windows image.
The following is the base syntax for servicing a Windows image using DISM:
DISM {/Image:<path_to_image_directory> | /Online} [dism_options] {servicing_command} [<servicing_argument>]
The following servicing options are available to apply an Unattend.xml answer file to an offline Windows image:
DISM /Image:<path_to_image_directory /Apply-Unattend:<path_to_unattend.xml>
The following servicing options are available to apply an Unattend.xml answer file to a running operating system:
DISM /Online /Apply-Unattend:<path_to_unattend.xml>
The following table provides a description of how an unattended servicing option can be used. These options are not case sensitive.
Option | Description |
---|---|
/Get-Help [dism_option | /Image:<path_to_image_directory>] /? |
When used immediately after an unattended servicing command-line option, information about the option and the arguments is displayed. Additional topics might become available when an image is specified. |
/Apply-Unattend: <path_to_unattend.xml> |
Applies an Unattend.xml file to an image. If you are updating device drivers using an unattended answer file, you must apply the answer file to an offline image and specify the settings in the offlineServicing configuration pass. If you are updating packages or other settings using an unattended answer file, you can apply the answer file to an offline or online image. Specify the settings in the offlineServicing configuration pass. |
Limitations
- You cannot use other servicing commands on the same command-line with unattended servicing commands.
- Only a single Unattend.xml answer file can be specified on any command line.
- When you add packages to an image using an unattended answer file, the applicability of the package will not be checked. The answer file will be applied, and the operation will complete even if there are packages specified in the answer file which are not applicable to the image. If you need to check the applicability of a package while you add it to an image, use the DISM command with the /Add-Package option and without the /ignorecheck option. For more information, see Operating System Package Servicing Command-Line Options.
- If you are updating device drivers using an unattended answer file, you must apply the answer file to an offline image.
- When you use DISM to apply an answer file to a running operating system, the answer file should only contain elements in the offlineServicing configuration pass. This is because some settings in the Specialize configuration pass might get applied to the operating system. We recommend that the answer file you use with DISM only contain settings in the offlineServicing configuration pass.
- When you apply an answer file using DISM, the answer file is not cached on the target computer.
See Also
Concepts
What Is Deployment Image Servicing and Management?
How Deployment Image Servicing and Management Works
Deployment Image Servicing and Management Command-Line Options
International Servicing Command-Line Options
Driver Servicing Command-Line Options
Operating System Package Servicing Command-Line Options