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> ]

Option Description

/Get-PESettings

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

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

/Get-ScratchSpace

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. For example:

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

/Get-TargetPath

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. For example:

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

/Set-ScratchSpace:<size_of_ScratchSpace>

Sets the available scratch space, in megabytes. Valid values are 32, 64, 128, 256 and 512. For example:

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

/Set-TargetPath :<target_path>

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;

For example:

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

Windows PE for Windows 10

Wpeutil Command-Line Options

What is DISM?

DISM Image Management Command-Line Options

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