DISM Windows PE Servicing Command-Line Options

You can update Windows Preinstallation Environment (WinPE) by adding drivers, language packs, list packages and prepare the Windows PE image for deployment.

You must use these commands on a mounted WinPE image. See WinPE: Mount and Customize. These options cannot be used with an online, running version of Windows PE.

In addition to the DISM global options, the following Windows PE servicing options are available. These options are not case sensitive.

DISM.exe /Image: <path_to_image_directory> [/Get-PESettings | /Get-ScratchSpace | /Get-TargetPath | /Set-ScratchSpace:<size_of_ScratchSpace> | /Set-TargetPath :<target_path> ]


Displays a list of Windows PE settings in the Windows PE image. The list includes scratch space settings and target path settings.


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


Retrieves the configured amount of Windows PE system volume scratch space. This setting represents the amount of writeable space available on the Windows PE system volume when booted in ramdisk mode.


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


Retrieves the target path of the Windows PE image. The target path represents a path to the root of the Windows PE image at boot time.


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


Sets the available scratch space, in megabytes.



Valid values for <Size_of_ScratchSpace> are: 32, 64, 128, 256, and 512.


Dism /image:C:\test\offline /set-ScratchSpace:128


For hard disk boot scenarios, this option sets the location of the Windows PE image on the disk.



Note the following limitations when setting the target path:

  • The path must be at least three characters and no longer than 32 characters
  • The path must start with a letter (any letter from C to Z)
  • The drive letter must be followed by :
  • The remainder of the path must not contain any invalid characters, such as Unicode characters
  • The path must be absolute, no . or .. elements
  • The path must not contain any blank spaces or &quot;


Dism /image:C:\test\offline /Set-TargetPath:X:

Windows PE overview

Wpeutil Command-Line Options

What is DISM?

DISM Image Management Command-Line Options

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