共用方式為


new-CaptureImage

從現有的開機映像建立新的擷取映像。 擷取映像是啟動 Windows 部署服務擷取公用程式的開機映像,而不是啟動安裝程式。 當您將參照電腦 (使用 Sysprep 準備) 開機到擷取映射時,精靈會建立參照電腦的安裝映像,並將它儲存為 Windows 映像 (.wim) 檔案。 您也可以將映像新增至媒體 (例如 CD、DVD 或 USB 磁碟機),然後從該媒體開機電腦。 建立安裝映像之後,您可以將映像新增至伺服器以進行 PXE 開機部署。 如需詳細資訊,請參閱建立映像 (https://go.microsoft.com/fwlink/?LinkId=115311)。

語法

wdsutil [Options] /New-CaptureImage [/Server:<Server name>]
     /Image:<Image name>
     /Architecture:{x86 | ia64 | x64}
     [/Filename:<File name>]
     /DestinationImage
        /FilePath:<File path and name>
        [/Name:<Name>]
        [/Description:<Description>]
        [/Overwrite:{Yes | No | Append}]
        [/UnattendFilePath:<File path>]

參數

參數 描述
[/Server:<Server name>] 指定伺服器的名稱。 這可以是 NetBIOS 名稱或完整網域名稱 (FQDN) 任一項。 如果未指定任何伺服器名稱,則會使用本機伺服器。
/Image:<Image name> 指定來源開機映像的名稱。
/Architecture: {x86 ia64
[/Filename: <Filename>] 如果映像無法以名稱唯一識別,您必須使用此選項來指定檔案名稱。
/DestinationImage 指定目的地映像的設定。 您可以使用下列選項來指定設定:
- /FilePath: <檔案路徑和名稱> 設定新擷取映像的完整檔案路徑。
- [/Name: <名稱>] - 設定映像的顯示名稱。 如果未指定顯示名稱,則會使用來源映像的顯示名稱。
- [/Description: <描述>] - 設定映像的描述。
- [/Overwrite: {Yes

範例

若要建立擷取映像並將其命名為 WinPECapture.wim,請輸入:

wdsutil /New-CaptureImage /Image:WinPE boot image /Architecture:x86 /DestinationImage /FilePath:C:\Temp\WinPECapture.wim

若要建立擷取映像並套用指定的設定,請輸入:

wdsutil /Verbose /Progress /New-CaptureImage /Server:MyWDSServer /Image:WinPE boot image /Architecture:x64 /Filename:boot.wim
/DestinationImage /FilePath:\\Server\Share\WinPECapture.wim /Name:New WinPE image /Description:WinPE image with capture utility /Overwrite:No /UnattendFilePath:\\Server\Share\WDSCapture.inf