Add-WindowsImage

Add-WindowsImage

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

구문

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

자세한 설명

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.

매개 변수

-CapturePath<String>

Specifies the path to the location of the new files that will be compared to the resources in the existing .wim file.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-CheckIntegrity

Add—WindowsImage, Dismount-WindowsImage 또는 Save-WindowsImage cmdlet와 함께 사용했을 때 .wim 파일 손상을 감지하고 추적합니다. Expand-WindowsImage 또는 Mount-WindowsImage cmdlet와 함께 사용했을 때 DISM이 .wim 파일이 손상된 경우, CheckIntegrity은 작업을 중지합니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-ConfigFilePath<String>

이미지 캡처 및 압축 명령의 제외 사항을 나열하는 구성 파일 위치를 지정합니다. 자세한 내용은 DISM 구성 목록 및 WimScrit.ini 파일(https://go.microsoft.com/fwlink/?LinkID=313768)를 참조하세요.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Description<String>

Specifies the description of the image to be captured.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-ImagePath<String>

Specifies the location of the WIM file containing the Windows image you want to compare against the new files.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-LogLevel<LogLevel>

로그에 표시된 최대 출력 수준을 지정합니다. 기본 로그 수준은 3입니다. 허용된 값은 다름과 같습니다. 1 = 오류만2 = 오류 및 경고3 = 오류, 경고 및 정보4 = 이전에 나열된 모든 정보와 함께 디버그 출력

별칭

LL

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-LogPath<String>

전체 경로와 파일 이름을 지정하여 기록합니다. 설정되지 않은 경우 기본값은 %WINDIR%\Logs\Dism\dism.log입니다.Windows PE의 경우 기본 디렉터리는 32MB까지 낮출 수 있는 RAMDISK 스크래치 공간입니다. 로그 파일은 자동으로 보관됩니다. 보관된 로그 파일은 파일 이름 뒤에 .bak가 추가되어 저장되고 새 로그 파일이 생성됩니다. 로그 파일이 보관될 때마다 .bak 파일을 덮어 씁니다. 도메인에 가입되지 않은 네트워크 공유를 사용할 때, DISM 로그에 대한 로그 경로를 설정하기 전에 도메인 자격 증명과 함께 net use 명령을 사용하여 액세스 권한을 설정합니다.

별칭

LP

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of an image in a WIM file.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-NoRpFix

재분석 지점 태그 수정을 사용하지 않습니다. 재분석 지점은 파일 시스템의 다른 파일에 연결되는 링크가 포함된 파일입니다. 매개 변수가 지정되지 않은 경우 ImagePath 매개 변수에 의해 지정된 값 외부에 있는 경로까지 확인하는 재분석 지점은 캡처되지 않습니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-ScratchDirectory<String>

서비스 시 필요한 파일을 추출할 때 사용되는 임시 디렉터리를 지정합니다. 디렉터리는 로컬에 존재해야 합니다. 지정하지 않으면 DISM을 실행할 때마다 임의로 생성된 16진수 값의 하위 디렉터리 이름이 있는 \Windows\%Temp% 디렉터리가 사용됩니다. 스크래치 디렉터리의 항목은 작업 후 삭제됩니다. 네트워크 공유 위치는 설치 시 패키지 파일(.cab 또는 .msu 파일)을 풀 스크래치 디렉터리로 사용해서는 안 됩니다. 서비스 중 임시로 사용하기 위해 파일을 추출하는 디렉터리는 로컬 디렉터리이어야 합니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Setbootable

볼륨 이미지를 부팅 가능한 이미지로 표시합니다. 이 인수는 Windows PE 이미지에 대해서만 사용할 수 있습니다. 하나의 볼륨 이미지만 .wim 파일의 부팅 가능한 것으로 표시할 수 있습니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Verify

오류 및 파일 중복을 검사합니다. Add-WindowsImage cmdlet을 사용하는 것과 같은 적용 작업 도중, 적용되고 있는 파일의 크기와 해시를 이미지 파일에 대해 검사하여 이 둘이 같은지 확인합니다. 파일을 Windows 이미지 내에 캡처한 후 New-WindowsImage cmdlet를 사용하는 것과 같은 캡처 작업 도중, 파일은 임시 파일에 쓰여지고 원본 파일과 비트별로 비교됩니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-WIMBoot

Specifies that the offline image to be added will be formatted to install on a Windows Image Format Boot (WIMBoot) system.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • System.String[]
  • Microsoft.Dism.Commands.ImageObject
  • Microsoft.Dism.Commands.ImageObjectWithState

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.Dism.Commands.OfflineImageObject

예제

Example 1

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

PS C:\> Add-WindowsImage -ImagePath c:\imagestore\custom.wim -CapturePath d:\ -Name "Drive D"

관련 항목

Dismount-WindowsImage

Expand-WindowsImage

Export-WindowsImage

Get-WindowsImage

Mount-WindowsImage

New-WindowsImage

Remove-WindowsImage

Repair-WindowsImage

Save-WindowsImage

Split-WindowsImage