共用方式為


wdsutil copy-image

適用於:Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

複製位於相同映像群組內的映像。 若要在映像群組之間複製映像,請使用 wdsutil Export-Image 命令,然後使用 wdsutil add-Image 命令

語法

wdsutil [Options] /copy-Image image:<Image name> [/Server:<Server name>] imagetype:Install imageGroup:<Image group name>] [/Filename:<File name>] /DestinationImage /Name:<Name> /Filename:<File name> [/Description:<Description>]

參數

參數 描述
image:<Imagename> 指定要複製的映像名稱。
[/Server:<Servername>] 指定伺服器的名稱。 這可以是 NetBIOS 名稱或完整網域名稱 (FQDN) 任一項。 如果未指定伺服器名稱,則會使用本地伺服器。
imagetype:Install 指定要複製的映像類型。 這個選項必須設定為 install
\imageGroup:<Image groupname>] 指定包含複製映像的映像群組。 如果未指定映像群組,而且伺服器上只有一個群組存在,則預設會使用該映像群組。 如果伺服器上存在多個映像群組,您必須指定映像群組。
[/Filename:<Filename>] 指定要複製的映像檔案名稱。 如果來源映像無法以名稱唯一識別,您必須指定檔案名稱。
/DestinationImage 指定目的地映像的設定。 有效值為:
  • /Name:<Name> - 設定要複製映像的顯示名稱。
  • /Filename:<Filename> - 設定將包含映像複本的目的地映像檔名稱。
  • [/Description:<Description>]- 設定映像複本的描述。

範例

若要建立指定映像的複本,並將它命名為 WindowsVista.wim,請輸入:

wdsutil /copy-Image image:Windows Vista with Office imagetype:Install /DestinationImage /Name:copy of Windows Vista with Office / Filename:WindowsVista.wim

若要建立指定映像的複本,請套用指定的設定,並將複本命名為 WindowsVista.wim,輸入:

wdsutil /verbose /Progress /copy-Image image:Windows Vista with Office /Server:MyWDSServe imagetype:Install imageGroup:ImageGroup1
/Filename:install.wim /DestinationImage /Name:copy of Windows Vista with Office /Filename:WindowsVista.wim /Description:This is a copy of the original Windows image with Office installed