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