PowerShell Logo Small

Dismount-WindowsImage



This is the built-in help made by Microsoft for the command 'Dismount-WindowsImage', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Dismounts a Windows image from the directory it is mapped to.

SYNTAX


Dismount-WindowsImage [-Append] [-CheckIntegrity] [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] -Path <String> -Save [<CommonParameters>]
Dismount-WindowsImage [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] -Discard -Path <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Dismount-WindowsImage cmdlet either saves or discards the changes to a Windows image and then dismounts the image.


The Path parameter specifies the location of the mounted Windows image.


The Append parameter specifies the location of an existing .wim file to add the Windows image to when you dismount it instead of overwriting the existing image.


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


The CheckIntegrity and Append parameters do not apply to virtual hard disk (VHD) files.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=289352
Save-WindowsImage
Repair-WindowsImage
Mount-WindowsImage
Get-WindowsImage

REMARKS

<

Examples


Example 1

PS C:\>Dismount-WindowsImage –Path c:\offline -Save



This command dismounts the Windows Image mapped to c:\offline and saves any changes that were made while servicing the image.