PowerShell Logo Small

Export-WindowsImage



This is the built-in help made by Microsoft for the command 'Export-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

Exports a copy of the specified image to another image file.

SYNTAX


Export-WindowsImage [-CheckIntegrity] [-CompressionType <String>] [-DestinationName <String>] [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>]
[-Setbootable] [-SplitImageFilePattern <String>] [-WIMBoot] -DestinationImagePath <String> -SourceImagePath <String> -SourceIndex <UInt32> [<CommonParameters>]
Export-WindowsImage [-CheckIntegrity] [-CompressionType <String>] [-DestinationName <String>] [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>]
[-Setbootable] [-SplitImageFilePattern <String>] [-WIMBoot] -DestinationImagePath <String> -SourceImagePath <String> -SourceName <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Export-WindowsImage cmdlet exports a copy of the specified image to another image file. The source and destination files must use the same compression type.


You can also optimize an image by exporting to a new image file with Export-WindowsImage. When you modify an image, DISM stores additional resource files that increas
e the overall size of the image. Exporting the image will remove unnecessary resource files.


This cmdlet does not apply to virtual hard disk (VHD) files.



<

RELATED LINKS

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

REMARKS

<

Examples


Example 1

PS C:\>Export-WindowsImage -SourceImagePath C:\imagestore\custom.wim -SourceIndex 1 -DestinationImagePath c:\imagestore\export.wim -DestinationName "Exported Image"



This command exports the image at Index 1 of the file C:\imagestore\custom.wim to the file c:\imagestore\export.wim with the name Exported Image.