共用方式為


wdsutil get-image

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

擷取映像的相關資訊。

語法

若為開機映像:

wdsutil [Options] /Get-Image image:<Image name> [/Server:<Server name> imagetype:Boot /Architecture:{x86 | ia64 | x64} [/Filename:<File name>]

若為安裝映像:

wdsutil [Options] /Get-image image:<Image name> [/Server:<Server name> imagetype:Install imagegroup:<Image group name>] [/Filename:<File name>]

參數

參數 描述
\image:<Image name> 指定映像的名稱。
[/Server:<Server name>] 指定伺服器的名稱。 這可以是 NetBIOS 名稱或完整網域名稱 (FQDN) 任一項。 如果未指定任何伺服器名稱,則會使用本機伺服器。
imagetype:{Boot | Install} 指定映像的類型。
/Architecture:{x86 | ia64 | x64} 指定映像的架構。 因為在不同的架構中,開機映像可以有相同的映像名稱,指定架構值可確保傳回正確的映像。
[/Filename:<File name>] 如果映像無法以名稱唯一識別,您必須使用此選項來指定檔案名稱。
\imagegroup:<Image group name>] 指定包含映像的映像群組。 如果未指定映像群組,而且伺服器上只有一個映像群組存在,則會使用該群組。 如果伺服器上存在多個映像群組,您必須使用此參數來指定映像群組。

範例

若要擷取開機映像的相關資訊,請輸入下列其中一項:

wdsutil /Get-Image image:WinPE boot imagetype:Boot /Architecture:x86
wdsutil /verbose /Get-Image image:WinPE boot image /Server:MyWDSServer imagetype:Boot /Architecture:x86 /Filename:boot.wim

若要擷取安裝映像的相關資訊,請輸入下列其中一項:

wdsutil /Get-Image:Windows Vista with Office imagetype:Install
wdsutil /verbose /Get-Image:Windows Vista with Office /Server:MyWDSServer imagetype:Install imagegroup:ImageGroup1 /Filename:install.wim