PowerShell Logo Small

Remove-WindowsImage



This is the built-in help made by Microsoft for the command 'Remove-WindowsImage', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' 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

Deletes the specified volume image from a WIM file that has multiple volume images.

SYNTAX


Remove-WindowsImage [-CheckIntegrity] [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] -ImagePath <String> -Index <UInt32> [<CommonParameters>]
Remove-WindowsImage [-CheckIntegrity] [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] -ImagePath <String> -Name <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-WindowsImage cmdlet deletes the specified volume image from a WIM file that has multiple volume images. This cmdlet deletes only the metadata entries and X
ML entries. It does not delete the stream data and does not optimize the WIM file.


This command-line option does not apply to virtual hard disk (VHD) files.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=273952
Add-WindowsImage
Dismount-WindowsImage
Expand-WindowsImage
Export-WindowsImage
Get-WindowsImage
Mount-WindowsImage
New-WindowsImage
Repair-WindowsImage
Save-WindowsImage
Split-WindowsImage

REMARKS

<

Examples


Example 1

PS C:\>Remove-WindowsImage -ImagePath c:\imagestore\custom.wim -Index 1 -CheckIntegrity



This command removes the first image in c:\imagestore\custom.wim.






Example 2

PS C:\>Remove-WindowsImage -ImagePath c:\imagestore\custom.wim -Name "Starter" -CheckIntegrity



This command removes the image named Starter that is located in c:\imagestore\custom.wim.