wdsutil replace-image

적용 대상: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

해당 이미지의 새 버전으로 기존 이미지를 대체합니다.

구문

부팅 이미지의 경우:

WDSUTIL [Options]
        /Replace-Image
        /Image:<Image name>
        [/Server:<Server name>]
        /ImageType:Boot
        /Architecture:{x86 | x64 | arm | arm64}
        [/Filename:<File name>]
        /ReplacementImage
          /ImageFile:<WIM file path>
          [/Name:<Image name>]
          [/Description:<Image description>]

/Architecture:{x86 | x64 | arm | arm64}
        The architecture of the image to be replaced. Since it is
        possible to have the same image name for boot images in
        different architectures, specifying the architecture value
        ensures that the correct image is replaced.

[/Filename:<File name>]
        If the image cannot be uniquely identified by name, the file
        name must be specified.

/ReplacementImage
  /ImageFile:<WIM file path>
        Specifies the full path and file name of the new WIM file.

  [/Name:<Name>]
        Sets the display name of the image.

  [/Description:<Description>]
        Sets the description of the image.

설치 이미지의 경우:

WDSUTIL [Options]
        /Replace-Image
        /Image:<Image name>
        [/Server:<Server name>]
        /ImageType:Install
        [/ImageGroup:<Image group name>]
        [/Filename:<File name>]
        /ReplacementImage
          /ImageFile:<WIM file path>
          [/SourceImage:<Source image name>]
          [/Name:<Image name>]
          [/Description:<Image description>]

[/ImageGroup:<Image group name>]
        The image group containing the image to be replaced. If not
        specified and only one image group exists on the server, that
        image group will be used by default. If more than one image
        group exists on the server, then the image group must be
        specified.

[/Filename:<File name>]
        If the image cannot be uniquely identified by name, the file
        name must be specified.

/ReplacementImage
  /ImageFile:<WIM file path>
        Specifies the full path and file name of the new WIM file.

  [/SourceImage:<image name>]
        Specifies the image to use if the new WIM file contains
        multiple images.

  [/Name:<Name>]
        Sets the display name of the image.

  [/Description:<Description>]
        Sets the description of the image.

매개 변수

매개 변수 설명
/Image:<Image name> 교체 이미지의 이름을 지정 합니다.
[/Server:<서버 이름>] 서버 이름을 지정합니다. 이 NetBIOS 이름 또는 정규화 된 도메인 이름 (FQDN) 수 있습니다. 서버 이름을 지정 하지, 로컬 서버가 사용 됩니다.
mediatype:{Boot | Install} 교체는 이미지의 유형을 지정 합니다.
/Architecture:{x86 | ia64 | x64} 교체 이미지의 아키텍처를 지정 합니다. 다른 아키텍처에서 다른 부팅 이미지에 대해 동일한 이미지 이름을 가질 수 있으므로 아키텍처를 지정하면 올바른 이미지가 바뀝니다.
[/Filename:<파일 이름>] 이미지를 이름으로 고유하게 식별할 수 없는 경우 이 옵션을 사용하여 파일 이름을 지정해야 합니다.
/replacementImage 대체 이미지에 대 한 설정을 지정합니다. 다음 옵션을 사용 하 여 이러한 설정을 설정할 수 있습니다.

- mediaFile: <파일 경로> - 새 .wim 파일의 이름 및 위치(전체 경로)를 지정합니다.
- [/SourceImage: <image name>] - .wim 파일에 여러 이미지가 포함된 경우 사용할 이미지를 지정합니다. 이 옵션은 설치 이미지에만 적용 됩니다.
- [/Name:<Image name>] 이미지의 표시 이름을 설정합니다.
- [/Description:<Image description>] - 이미지의 설명을 설정합니다.

예제

부팅 이미지를 대체 하려면 다음 중 하나를 입력 합니다.

WDSUTIL /Replace-Image /Image:"WinPE Boot Image" /ImageType:Boot /Architecture:x86 /ReplacementImage /ImageFile:"C:\MyFolder\Boot.wim"

WDSUTIL /Verbose /Progress /Replace-Image /Image:"WinPE Boot Image" /Server:MyWDSServer /ImageType:Boot /Architecture:x64 /Filename:boot.wim /ReplacementImage /ImageFile:\\MyServer\Share\Boot.wim /Name:"My WinPE Image" /Description:"WinPE Image with drivers"

설치 이미지를 대체 하려면 다음 중 하나를 입력 합니다.

WDSUTIL /Replace-Image /Image:"Windows 10 Home"
/ImageType:Install /ReplacementImage /ImageFile:"C:\MyFolder\Install.wim"

WDSUTIL /Verbose /Progress /Replace-Image /Image:"Windows 10 Pro" /Server:MyWDSServer /ImageType:Install /ImageGroup:ImageGroup1 /Filename:Install.wim /ReplacementImage /ImageFile:\\MyServer\Share \Install.wim /SourceImage:"Windows 10 Pro" /Name:"Windows Vista Desktop" /Description:"Windows 10 Pro with standard business applications."