Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Mount-WindowsImage

Mount-WindowsImage - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Mount-WindowsImage

Short description
Mounts a Windows image in a WIM or VHD file to a directory on the local computer.

Syntax
Mount-WindowsImage [-CheckIntegrity [<SwitchParameter>]] [-LogLevel <LogLevel>] [-LogPath <String>] [-Optimize [<Switch
Parameter>]] [-ReadOnly [<SwitchParameter>]] [-ScratchDirectory <String>] -ImagePath <String> -Index <UInt32> -Path <St
ring> [<CommonParameters>]
Mount-WindowsImage [-CheckIntegrity [<SwitchParameter>]] [-LogLevel <LogLevel>] [-LogPath <String>] [-Optimize [<Switch
Parameter>]] [-ReadOnly [<SwitchParameter>]] [-ScratchDirectory <String>] -ImagePath <String> -Name <String> -Path <Str
ing> [<CommonParameters>]
Mount-WindowsImage [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] -Path <String> -Remount [<Sw
itchParameter>] [<CommonParameters>]





Description
The Mount-WindowsImage cmdlet maps a Windows image in a WIM or VHD file to the specified directory so that it is access
ible for servicing.

The Path parameter specifies the location where you want to mount the Windows image.

The ImagePath parameter specifies the location of the WIM or VHD file containing the Windows image you want to mount.

Use the Index or Name parameter to specify which image in a WIM or VHD file that you want to mount. For a VHD file, the
 Index must be 1.

The Optimize parameter reduces the amount of time it takes to initially mount the image. However, processes that are or
dinarily performed during a mount will instead be completed the first time that you access a directory. As a result, th
ere may be an increase in the time that is required to access a directory for the first time after mounting an image us
ing the optimize parameter.

The Remount parameter mounts an image in a WIM or VHD file that was already mounted at the specified Path, but has beco
me inaccessible for servicing.

The CheckIntegrity parameter detects and tracks .wim file corruption. CheckIntegrity stops the operation if DISM detect
s that the .wim file is corrupted when used with the Mount-WindowsImage cmdlet.

The CheckIntegrity parameter does not apply to virtual hard disk (VHD) files.