共用方式為


Import-WdsInstallImage

Import-WdsInstallImage

Imports an install image to an image store.

語法

Parameter Set: SingleImage
Import-WdsInstallImage -Path <String> [-AsJob] [-CimSession <CimSession[]> ] [-DisplayOrder <UInt32> ] [-ImageGroup <String> ] [-ImageName <String> ] [-NewDescription <String> ] [-NewFileName <String> ] [-NewImageName <String> ] [-SkipVerify] [-ThrottleLimit <Int32> ] [-UnattendFile <String> ] [ <CommonParameters>]

Parameter Set: SingleImageAutoStart
Import-WdsInstallImage -Multicast -Path <String> [-AsJob] [-CimSession <CimSession[]> ] [-ClientCount <UInt32> ] [-DisplayOrder <UInt32> ] [-ImageGroup <String> ] [-ImageName <String> ] [-NewDescription <String> ] [-NewFileName <String> ] [-NewImageName <String> ] [-SkipVerify] [-StartTime <DateTime> ] [-ThrottleLimit <Int32> ] [-TransmissionName <String> ] [-UnattendFile <String> ] [ <CommonParameters>]

Parameter Set: SingleImageManualStart
Import-WdsInstallImage -ManualStart -Multicast -Path <String> [-AsJob] [-CimSession <CimSession[]> ] [-DisplayOrder <UInt32> ] [-ImageGroup <String> ] [-ImageName <String> ] [-NewDescription <String> ] [-NewFileName <String> ] [-NewImageName <String> ] [-SkipVerify] [-ThrottleLimit <Int32> ] [-TransmissionName <String> ] [-UnattendFile <String> ] [ <CommonParameters>]

詳細描述

The Import-WdsInstallImage cmdlet imports an install image to an image store. You can import a single image from a WIM file, all images from a WIM file, or a VHD image. If you add a single image, you can also specify a new name, description, and file name for the image.

When you work with multicast transmissions that use a single install image as content you can do any of the following:

-- Create and name an AutoCast transmission.
-- Create and name a ScheduledCast transmission which begins when a preset number of clients are ready to start, at a specific time, or both.
-- Create a manually started ScheduledCast transmission.

An AutoCast transmission is a multicast transmission. When a client requests an install image, the multicast transmission begins. Clients that request the same image are joined to the multicast transmission.

A ScheduledCast transmission is a multicast transmission. When a specified number of clients request an image, or a specified time of day is reached, the multicast transmission begins. If you do not specify either of these conditions, you must manually start the transmission.

If you add multiple images, they will be added to the same image group. You can associate an answer file for unattended install with the images that you import. Specify the image to import by using the full path to the image file.

參數

-AsJob

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-CimSession<CimSession[]>

在遠端工作階段或遠端電腦上執行 Cmdlet。輸入電腦名稱或工作階段物件,例如 New-CimSessionGet-CimSession Cmdlet 的輸出。預設為本機電腦上的目前工作階段。

別名

Session

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-ClientCount<UInt32>

Specifies the number of clients that must connect to a transmission. If you also specify MulticastTransmission, this parameter specifies the number of clients that must connect to the ScheduledCast transmission in order for it to begin. The StartScheduledCast parameter can start a transmission before reaching the client count. If you specify the ClientCount parameter with the StartTime parameter, the transmission begins when either a sufficient number of clients connect, or at the time specified by the StartTime parameter.

You may not use this parameter together with the ManualStart parameter.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-DisplayOrder<UInt32>

Specifies the order in which images appear in the boot menu on Pre-Boot Execution Environment (PXE) clients. The menu lists the boot images in ascending order, smallest number to largest number.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-ImageGroup<String>

Specifies the name of an image group. This image group contains the image to import. If you do not specify an image group, and only one image group exists on the server, the cmdlet uses that image group by default. If more than one image group exists on the server, you must specify the image group.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-ImageName<String>

Specifies the name of an image. This is the name of the image to import. This parameter does not support VHD images.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-ManualStart

Indicates that the transmission uses a manual start. If you also specify the MulticastTransmission parameter, the cmdlet creates a ScheduledCast transmission that does not begin until a StartScheduledCast command is given.

別名

必要?

true

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-Multicast

Indicates that the cmdlet enables an AutoCast transmission on the image. If you do not specify a name by using the TransmissionName parameter, the multicast transmission uses the image name.

別名

必要?

true

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-NewDescription<String>

Specifies a new description for the install image to create in the import operation.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-NewFileName<String>

Specifies a new file name for the install image to create in the import operation. If you do not specify a name, the cmdlet uses the display name of the source image. The file name must be unique. If you add more than one image, a number is appended to the file name.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-NewImageName<String>

Specifies a new name for the image file to create in the import operation.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-Path<String>

Specifies a fully-qualified path that is accessible to the Windows Deployment Services server.

別名

必要?

true

位置?

named

預設值

接受管線輸入?

True (ByValue)

接受萬用字元?

false

-SkipVerify

Indicates that Windows Deployment Services does not verify the source image file before adding it to the image store.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-StartTime<DateTime>

Specifies a day and time, in MM/DD/YYYY.hh:mm:ss format, that denotes the start time. When you specify the MulticastTransmission parameter, this parameter denotes the time the ScheduledCast transmission begins. The StartScheduledCast command can start a transmission before reaching the client count. If you specify both the StartTime parameter and the ClientCount parameter, the transmission begins when either a sufficient number of clients connect, or the time specified in this parameter is reached. Do not specify this parameter together with the ManualStart parameter.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-ThrottleLimit<Int32>

指定為執行此 Cmdlet 可建立的最大同時作業數。如果省略這個參數或輸入 0 的值,則 Windows PowerShell® 會根據在電腦上執行的 CIM Cmdlet 數目,計算 Cmdlet 的最佳節流限制。節流限制僅適用於目前 Cmdlet,不適用於工作階段或電腦。

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-TransmissionName<String>

Specifies a name for the multicast transmission.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

-UnattendFile<String>

Specifies the full path to the answer file associated with the image.

別名

必要?

false

位置?

named

預設值

接受管線輸入?

false

接受萬用字元?

false

<CommonParameters>

此 Cmdlet 支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 與 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

輸入

輸入類型是您可以使用管線處理方式傳遞給 Cmdlet 的物件類型。

輸出

輸出類型是 Cmdlet 所發出的物件類型。

  • Microsoft.Management.Infrastructure.CimInstance#MSFT_WdsInstallImage

範例

Example 1: Import an image

This command imports an install image and skips the verification of the image.

PS C:\> Import-WdsInstallImage -Path "D:\images\install.wim" -ImageGroup "Fabrikam Latest Images" -SkipVerify

Example 2: Import an install image by using an unattend file

This command imports an install image by using an answer file named FabrikamLatestwLOB.xml.

PS C:\> Import-WdsInstallImage -Path "D:\images\install.wim" -ImageName "Fabrikam Latest with LOB apps" -ImageGroup "Fabrikam Latest Images" -DisplayOrder 0 -NewImageName "Fabrikam Latest with LOB v2.0 apps" -UnattendFile "D:\images\unattend\FabrikamLatestwLOB.xml"

Example 3: Import an install image and create a multicast transmission

This command imports an install image and creates a multicast transmission.

PS C:\> Import-WdsInstallImage -Path "D:\images\install.wim" -ImageName "Fabrikam Latest with LOB apps" -ImageGroup "Fabrikam Latest Images" -Multicast -TransmissionName "Fabrikam Latest AutoCast"

Example 4: Import an install image and create a multicast transmission with a start time

This command imports an install image and create a multicast transmission with an automatic start time.

PS C:\> Import-WdsInstallImage -Path "D:\images\install.wim" -ImageName "Fabrikam Latest with LOB apps" -ImageGroup "Fabrikam Latest Images" -Multicast -ClientCount 50 -StartTime 2014/12/01:11:00 -TransmissionName "Fabrikam Latest ScheduledCast with automatic start"

Example 5: Import an install image and create a multicast transmission with manual start

This command imports an install image and creates a multicast transmission with a manual start.

PS C:\> Import-WdsInstallImage -Path "D:\images\install.wim" -ImageName "Fabrikam Latest with LOB apps" -ImageGroup "Fabrikam Latest Images" -Multicast -ManualStart -TransmissionName "Fabrikam Latest ScheduledCast with manual start"

相關主題

Copy-WdsInstallImage

Disable-WdsInstallImage

Enable-WdsInstallImage

Export-WdsInstallImage

Get-WdsInstallImage

Remove-WdsInstallImage

Set-WdsInstallImage