wdsutil replace-image
將現有的映像取代為該映像的新版本。
語法
若為開機映像:
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:<Server name>] | 指定伺服器的名稱。 這可以是 NetBIOS 名稱或完整網域名稱 (FQDN) 任一項。 如果未指定伺服器名稱,則會使用本地伺服器。 |
mediatype:{Boot | Install} | 指定要取代的映像類型。 |
/Architecture:{x86 | ia64 | x64} | 指定要取代的映像架構。 因為在不同的架構中,不同的開機映像可以有相同的映像名稱,指定架構值可確保取代正確的映像。 |
[/Filename:<File name>] | 如果映像無法以名稱唯一識別,您必須使用此選項來指定檔案名稱。 |
/replacementImage | 指定取代映像的設定。 您可以使用下列選項來設定這些設定: - mediaFile: <file path> - 指定新 .wim 檔案的名稱和位置 (完整路徑)。 |
範例
若要取代開機映像,請輸入下列其中一項:
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."