Remove-WindowsImage

Remove-WindowsImage

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

구문

Parameter Set: InputByFilePathAndIndex
Remove-WindowsImage -ImagePath <String> -Index <UInt32> [-CheckIntegrity] [-LogLevel <LogLevel> {Errors | Warnings | WarningsInfo} ] [-LogPath <String> ] [-ScratchDirectory <String> ] [ <CommonParameters>]

Parameter Set: InputByFilePathAndName
Remove-WindowsImage -ImagePath <String> -Name <String> [-CheckIntegrity] [-LogLevel <LogLevel> {Errors | Warnings | WarningsInfo} ] [-LogPath <String> ] [-ScratchDirectory <String> ] [ <CommonParameters>]

자세한 설명

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 XML 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.

매개 변수

-CheckIntegrity

Add-WindowsImage, Dismount-WindowsImage 또는 Save-WindowsImage cmdlet에 사용될 경우 .wim 파일 손상을 감지하고 추적합니다. CheckIntegrity는 Expand-WindowsImage 또는 Mount-WindowsImage cmdlet에 사용될 때 DISM이 .wim 파일이 손상되었음을 감지하면 작업을 중지합니다.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-ImagePath<String>

Specifies the location of a WIM file.

별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Index<UInt32>

WIM 또는 VHD 파일에 있는 Windows 이미지의 인덱스 번호를 지정합니다. VHD 파일에 대한 인덱스는 1이어야 합니다.

별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-LogLevel<LogLevel>

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

별칭

LL

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-LogPath<String>

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

별칭

LP

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of an image in a WIM file.

별칭

none

필수 여부

true

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-ScratchDirectory<String>

서비스하는 동안 사용할 파일을 추출할 때 사용되는 임시 디렉터리를 지정합니다. 디렉터리는 로컬로 존재해야 합니다. 이를 지정하지 않으면 \Windows\%Temp% 디렉터리가 각 DISM 실행에 대해 무작위로 생성된 16진수 값으로 구성된 하위 디렉터리 이름과 함께 사용됩니다. 임시 디렉터리의 항목은 각 작업 후 삭제됩니다. 네트워크 공유 위치를 임시 디렉터리로 사용하여 설치용 패키지(.cab 또는.msu 파일)를 확장해서는 안 됩니다. 서비스하는 동안 임시로 사용할 파일을 추출하는 데 사용되는 디렉터리는 로컬 디렉터리여야 합니다.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 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.ImageObject

Example 1: Remove the first image from a WIM file

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

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

Example 2: Remove an image from a WIM file by name

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

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

관련 항목

Add-WindowsImage

Dismount-WindowsImage

Expand-WindowsImage

Export-WindowsImage

Get-WindowsImage

Mount-WindowsImage

New-WindowsImage

Repair-WindowsImage

Save-WindowsImage

Split-WindowsImage