wdsutil export-image

適用対象: Windows Server 2022、Windows Server 2019、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012

既存のイメージをイメージ ストアから別の Windows イメージ (.wim) ファイルにエクスポートします。

構文

ブート イメージの場合。

wdsutil [options] /Export-Image image:<Image name> [/Server:<Servername>]
    imagetype:Boot /Architecture:{x86 | ia64 | x64} [/Filename:<Filename>]
     /DestinationImage
         /Filepath:<Filepath and name>
         [/Name:<Name>]
         [/Description:<Description>]
     [/Overwrite:{Yes | No}]

インストール イメージの場合。

wdsutil [options] /Export-Image image:<Image name> [/Server:<Servername>]
    imagetype:Install imageGroup:<Image group name>]
     [/Filename:<Filename>]
     /DestinationImage
         /Filepath:<Filepath and name>
         [/Name:<Name>]
         [/Description:<Description>]
     [/Overwrite:{Yes | No | append}]

パラメーター

パラメーター 説明
image:<Imagename> エクスポートするイメージの名前を指定します。
[/Server:<Servername>] サーバーの名前を指定します。 NetBIOS 名または完全修飾ドメイン名 (FQDN) のいずれかを指定できます。 サーバー名が指定されていない場合は、ローカルのサーバーが使用されます。
imagetype:{Boot|Install} エクスポートする画像の種類を指定します。
\imageGroup:<Image group name>] エクスポートするイメージを含むイメージ グループを指定します。 イメージ グループ名が指定されていないサーバーに 1 つだけのイメージ グループが存在する場合は、そのイメージ グループが既定で使用されます。 サーバーの 1 つ以上のイメージ グループが存在する場合は、イメージ グループを指定してください。
/Architecture:{x86|ia64|x64} エクスポートするイメージのアーキテクチャを指定します。 さまざまなアーキテクチャでブート イメージで同じイメージの名前を持つことなのではアーキテクチャの値を指定する適切なイメージが必ず返されるようにします。
[/ファイル名:<Filename>] イメージを名前によって一意に識別できない場合は、ファイル名を指定する必要があります。
/DestinationImage コピー先の画像の設定を指定します。 次のオプションを使用してこれらの設定を指定することができます。
  • /Filepath:<Filepath and name> - 新しいイメージのファイルの完全パスを指定します。
  • [/Name:<Name>] - イメージの表示名を設定します。 名が指定されていない場合は、ソース イメージの表示名が使用されます。
  • [/Description: <Description>] - イメージの説明を設定します。
[/Overwrite:{Yes|No|append}] /Filepath にその名前の既存のファイルが既に存在する場合に /DestinationImage オプションで指定されているファイルが上書きされるかどうかを決定します。 [はい] オプションでは、既存のファイルが上書きされ、[いいえ] オプション (既定値) では、同じ名前のファイルが既に存在する場合にエラーが発生し、[追加] オプションでは、生成されたイメージが既存の .wim ファイル内の新しいイメージとして追加されます。

ブート イメージをエクスポートするには、次のいずれかを入力します。

wdsutil /Export-Image image:WinPE boot image imagetype:Boot /Architecture:x86 /DestinationImage /Filepath:C:\temp\boot.wim
wdsutil /verbose /Progress /Export-Image image:WinPE boot image /Server:MyWDSServer imagetype:Boot /Architecture:x64 /Filename:boot.wim /DestinationImage /Filepath:\\Server\Share\ExportImage.wim /Name:Exported WinPE image /Description:WinPE Image from WDS server /Overwrite:Yes

インストール イメージをエクスポートするには、次のいずれかを入力します。

wdsutil /Export-Image image:Windows Vista with Office imagetype:Install /DestinationImage /Filepath:C:\Temp\Install.wim
wdsutil /verbose /Progress /Export-Image image:Windows Vista with Office /Server:MyWDSServer imagetype:Instal imageGroup:ImageGroup1 /Filename:install.wim /DestinationImage /Filepath:\\server\share\export.wim /Name:Exported Windows image /Description:Windows Vista image from WDS server /Overwrite:append