PowerShell Logo Small

Add-WindowsImage



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

Adds an additional image to an existing image (.wim) file.

SYNTAX


Add-WindowsImage [-CheckIntegrity] [-ConfigFilePath <String>] [-Description <String>] [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRpFix] [-ScratchDirectory <String>]
[-Setbootable] [-Verify] [-WIMBoot] -CapturePath <String> -ImagePath <String> -Name <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-WindowsImage cmdlet adds an additional image to an existing image (.wim) file. Add-WindowsImage compares new files to the resources in the existing .wim file,
specified by the Name parameter and the ImagePath parameter, and stores only a single copy of each unique file so that each file is only captured once. The .wim file can
have only one assigned compression type. Therefore, you can only append files with the same compression type.

The Add-WindowsImage cmdlet does not apply to virtual hard disk (VHD) files.

It’s important to note that you’ll need to ensure you have enough disk space before you run Add-WindowsImage. If you run out of disk space while the image is being appended,
you might corrupt the .wim file.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=273947
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:\>Add-WindowsImage -ImagePath c:\imagestore\custom.wim -CapturePath d:\ -Name "Drive D"



This command adds files from d:\”Drive D” to the existing image at c:\imagestore\custom.wim