PowerShell Logo Small

New-WindowsImage



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

Captures an image of a drive to a new WIM file.

SYNTAX


New-WindowsImage [-CheckIntegrity] [-CompressionType <String>] [-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 New-WindowsImage cmdlet captures an image of a drive to a new WIM file. Captured directories include all subfolders and data. You cannot capture an empty directory. A
directory must contain at least one file.


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



<

RELATED LINKS

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



This command captures the Drive D image in the WIM file located on d:\ and save to the file c:\imagestore\custom.wim.