다음을 통해 공유


DISM Application Servicing Command-Line Options

Applies To: Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2

Application servicing command-line options can be used on an offline image to check the applicability of Windows® Installer application patches (.msp files) and to query your offline image for information about installed Windows Installer applications and application patches (.msp files).

For information about using Deployment Image Servicing and Management (DISM) with app packages, see DISM App Package (.appx or .appxbundle) Servicing Command-Line Options.

The base syntax for servicing a Windows image using DISM is:

DISM.exe/Image:<path_to image_directory> [dism_global_options] {servicing_option} [<servicing_argument>]

The following servicing options are available to list Windows Installer applications and .msp application patches, and to check the applicability of an application patch for an offline Windows image:

DISM.exe /Image:<path_to_directory> [/Check-AppPatch | /Get-AppPatchInfo: | /Get-AppPatches | /Get-AppInfo | /Get-Apps]

Application servicing options

This section describes how you can use each application servicing option. These options are not case sensitive.

/Get-Help /?

When used immediately after a package servicing command-line option, information about the option and the arguments is displayed. Additional topics might become available when an image is specified.

Example:

Dism /image:C:\test\offline /Check-AppPatch /?

/Check-AppPatch /PatchLocation:&lt; path_to_patch.msp&gt;

Displays information only if the MSP patches apply to the offline image. The path to the MSP patch file must be specified. Multiple patch files can be specified.

Example:

Dism /image:C:\test\offline /Check-AppPatch /PatchLocation:C:\test\MSIPatches\MsiTestPatch1.msp /PatchLocation:C:\test\MSIPatches\MsiTestPatch2.msp

/Get-AppPatchInfo: [/PatchCode:&lt; patch_code_GUID&gt;] [/ProductCode:&lt; product_code_GUID&gt;]

Displays detailed information about installed MSP patches filtered by <patch_code_GUID> and <product_code_GUID>.

If the /PatchCode option is specified, detailed information is displayed for all Windows Installer applications that the patch is applied to.

If the /ProductCode option is specified, information about all MSP patches in the specified application is displayed.

If the /PatchCode and /ProductCode options are specified, information is displayed only if that specific patch is applied to the specified Windows Installer application.

Use the /Get-AppPatches option to find the patch code GUID and the product code GUID specific to the patch. Use the /Get-Apps option to list all product code GUIDs for an installed Windows Installer applications.

If /PatchCode and /ProductCode are not specified, all installed Windows Installer packages and MSP patches are displayed.

Example:

Dism /image:C:\test\offline /Get-AppPatchInfo

Dism /image:C:\test\offline /Get-AppPatchInfo: /PatchCode:{B0B9997C-GUID-GUID-GUID-74D866BBDFFF}

Dism /image:C:\test\offline /Get-AppPatchInfo: /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}

Dism /image:C:\test\offline /Get-AppPatchInfo: /PatchCode:{B0B9997C-GUID-GUID-GUID-74D866BBDFFF} /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}

/Get-AppPatches: [/ProductCode:&lt; product_code_GUID&gt;]

Displays basic information about all applied MSP patches for all applications installed on the offline image. If a product code GUID is specified, information is displayed about all patches in the specified Windows Installer application.

Examples:

Dism /image:C:\test\offline /Get-AppPatches

Dism /image:C:\test\offline /Get-AppPatches /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}

/Get-AppInfo: [/ProductCode:&lt; product_code_GUID&gt;]

Displays detailed information about a specific installed Windows Installer application.

Use the /Get-Apps option to find the GUID for an installed Windows Installer application. If a product code GUID is not specified, information is displayed for all Windows Installer applications installed in the offline image.

Examples:

Dism /image:C:\test\offline /Get-AppInfo

Dism /image:C:\test\offline /Get-AppInfo /ProductCode:{B0F9497C-GUID-GUID-GUID-74D866BBDF59}

/Get-Apps

Displays basic information about all Windows Installer applications in the offline image.

Example:

Dism /image:C:\test\offline /Get-Apps

Limitations

/Get-AppPatches and /Get-AppPatchInfo apply only to installed patches (.msp files).

When you determine the applicability of an MSP patch, only the Windows Installer applications for which the patch is applicable will be displayed. One patch can apply to many installed applications and many patches can apply to one application.

See Also

Reference

DISM Image Management Command-Line Options
DISM App Package (.appx or .appxbundle) Servicing Command-Line Options

Concepts

DISM Overview (Deployment Image Servicing and Management)

Other Resources

Deployment Image Servicing and Management (DISM) Command-Line Options