Get-WindowsImage

Get-WindowsImage

Gets information about a Windows image in a WIM or VHD file.

구문

Parameter Set: InputByFilePath
Get-WindowsImage -ImagePath <String> [-LogLevel <LogLevel> ] [-LogPath <String> ] [-ScratchDirectory <String> ] [ <CommonParameters>]

Parameter Set: InputByFilePathAndIndex
Get-WindowsImage -ImagePath <String> -Index <UInt32> [-LogLevel <LogLevel> ] [-LogPath <String> ] [-ScratchDirectory <String> ] [ <CommonParameters>]

Parameter Set: InputByFilePathAndName
Get-WindowsImage -ImagePath <String> -Name <String> [-LogLevel <LogLevel> ] [-LogPath <String> ] [-ScratchDirectory <String> ] [ <CommonParameters>]

Parameter Set: InputByMounted
Get-WindowsImage -Mounted [-LogLevel <LogLevel> ] [-LogPath <String> ] [-ScratchDirectory <String> ] [ <CommonParameters>]

자세한 설명

The Get-WindowsImage cmdlet gets information about a Windows image in a WIM or VHD file.

Use the Mounted parameter to get information about any Windows images that are mapped to directories on the local computer.

Use the ImagePath parameter to get information about images in a specific WIM or VHD file.

Use the Index or Name parameter to get detailed information about a specific image in a WIM or VHD file. For a VHD file, the Index must be 1.

매개 변수

-ImagePath<String>

Specifies the location of a WIM or VHD file.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Index<UInt32>

Specifies the index number of a Windows image in a WIM or VHD file. For a VHD file, the Index must be 1.

별칭

없음

필수 여부

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

-Mounted

Gets information, including the mount path, for all images mapped to a directories on the local computer.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of an image in a WIM or VHD file.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

true

-ScratchDirectory<String>

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

별칭

없음

필수 여부

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

출력

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

  • Microsoft.Dism.Commands.ImageInfoObject
  • Microsoft.Dism.Commands.MountedImageInfoObject
  • Microsoft.Dism.Commands.WimImageInfoObject
  • Microsoft.Dism.Commands.BasicImageInfoObject

예제

Example 1

This command gets information, including mount path, about all of the Windows images mounted on the local computer.

PS C:\> Get-WindowsImage -Mounted

Example 2

This command gets detailed information about the Windows image named “Ultimate” in the install.wim file at c:\imagestore.

PS C:\> Get-WindowsImage –ImagePath c:\imagestore\install.wim –Name Ultimate

Example 3

This command gets basic information about the Windows image in the install.vhd file at c:\imagestore.

PS C:\> Get-WindowsImage –ImagePath c:\imagestore\install.vhd

관련 항목

Dismount-WindowsImage

Mount-WindowsImage

Repair-WindowsImage

Save-WindowsImage