Latest Blog Posts

We're members of the

We've ridden there:

Demo

Layne's certifications:

 

Advanced DISM Options

The following table describes components of the system image which typically need servicing and the related advanced DISM options:

Component Description
Drivers Use the following dismcommand options to manage the system image drivers:
  • /add-driver adds the driver to the specified image.
  • /add-driver /driver adds all of the drivers in the directory.
  • /add-driver /driver /recurse adds all of the drivers in the directory and its subdirectories.
  • /get-drivers displays basic information about all out-of-box drivers.
  • /get-drivers /all displays basic information about all drivers, in addition to the all out-of-box drivers.
  • /get-driverinfo driver displays detailed information about a specific driver package.
  • /remove-driver removes third-party drivers.
    • The drive path must use the driver's published name. Use /get-drivers /all to view the published name.
    • You cannot remove default drivers.
  • /forceunsigned overrides the digital signature requirements for drivers on 64-bit versions of Windows 7.

Be aware of the following:

  • Place your drivers in a convenient location before using DISM to update the system image drivers.
  • DISM does not support drivers in the form of .msi packages or .exe files.
  • If adding multiple drivers in the same command, the drivers are installed in the order that they are listed in the command.
Windows Applications and Application Patches Use the following dism command options to manage Windows applications (.msi) and application patches (.msp files):
  • /get-apppatches displays a list of MSP files that are available on the image.
  • /check-apppatch /patchlocation displays information only if the MSP patches are applicable to the offline image.
  • /get-apppatchinfo displays detailed information about all installed MSP patches.
  • /get-appinfo displays detailed information for all the installed MSI applications.
  • /get-appinfo /productcode displays detailed information about the specific MSI application installed on the image.
  • /get-apps displays all MSI applications installed on the offline image as well as the GUID.

Be aware of the following:

  • DISM does not retrieve information from .exe or .dll files.
  • The DISM command does not have an /add-apps option to install applications; use Microsoft Deployment toolkit (MDT 2010) to install applications to a previously-captured offline image.
Windows Security Updates and Features Use the following dism command options to manage Windows packages provided in a cabinet (.cab) or Windows Update Stand-alone Installer (.msu) file format:
  • /get-packages displays basic information about all the packages that have been installed on the image.
  • /get-packageinfo /packagename displays detailed information about a specific .cab package.
  • /get-packageinfo /packagepath displays detailed information about a specific package.
  • /add-package /packagepath installs a specific .cab or .msu package to the image, including:
    • A single .cab or .msu file
    • A folder containing a single expanded .cab file
    • A folder containing a single .msu file
    • A folder containing multiple .cab or .msu files
  • /remove-package removes a .cab installed package.
  • /get-features displays information about all the features in a package.
  • /get-featureinfo displays detailed information about the feature.
  • /enable-feature enables a specific feature on the image.
  • /disable-feature disables a specific feature on the image.

Be aware of the following:

  • DISM commands are not case-sensitive; however, feature names are case-sensitive.
  • You cannot remove .msu installations.
International Settings Use the following dismcommand options to manage international settings for an offline or online image:
  • /get-intl returns information about the international settings and languages on an online image.
  • /set-uilang installs a new language on the image.
  • /set-inputlocale adds a new keyboard layout to the image.
  • /set-timezone changes the time zone of the mounted offline image.
Windows Editions The Windows 7 installation media has a pre-staged package for each Windows 7 edition. This is referred to as an edition-family image. Use the following dismcommand options to manage and configure the Windows editions on an offline or online image:
  • /get-currentedition identifies the edition of the offline or online image.
  • /set-edition upgrades the Windows image to a higher edition.
  • /set-productkey enters the product key for the current edition in an offline Windows image after you change an offline Windows image to a higher edition.

Note: The following options revert all pending actions from the previous servicing operations because the actions might be the cause of a boot failure:

  • /cleanup-image
  • /revertpendingactions