Export-WdsBootImage

Export-WdsBootImage

Exports an existing boot image from an image store.

语法

Parameter Set: BootImageName
Export-WdsBootImage -Architecture <Architecture> -Destination <String> -ImageName <String> [-AsJob] [-CimSession <CimSession[]> ] [-FileName <String> ] [-Force] [-NewDescription <String> ] [-NewImageName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

详细说明

The Export-WdsBootImage cmdlet exports a boot image from the Windows Deployment Services image store to a Windows image file (.wim). You can use the Force parameter to overwrite the image file if you export an image to a file that already exists.

Specify the boot image by using the ImageName and Architecture parameters. If the image name and architecture do not uniquely identify the image, also specify the FileName parameter.

参数

-Architecture<Architecture>

Specifies an architecture. This is the architecture of the boot image. Because you can use the same image name for boot images in different architectures, specify this this parameter to ensure that you export the correct image. 此参数可接受的值如下:

-- ARM
-- ia64
-- x64
-- x86

别名

是否为必需?

true

位置?

named

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-AsJob

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-CimSession<CimSession[]>

在远程会话中或在远程计算机上运行 cmdlet。输入计算机名称或会话对象,例如 New-CimSessionGet-CimSession cmdlet 的输出。默认为本地计算机上的当前会话。

别名

Session

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-Destination<String>

Specifies the fully qualified path of the exported image. The path must accessible to the Windows Deployment Services server.

别名

是否为必需?

true

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-FileName<String>

Specifies a file name. This is the file name of the boot image. Use this parameter to specify the file name for the boot image if the boot image name does not uniquely identify the image.

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-Force

Indicates that the cmdlet overwrites an image file if the file exists in the path that you specify.

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-ImageName<String>

Specifies the name of an image. This is the name of the image to export.

别名

是否为必需?

true

位置?

named

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-NewDescription<String>

Specifies a new description.

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-NewImageName<String>

Specifies a name for the image. If you do not specify this parameter, the cmdlet uses the name of the source image for the name of the exported image.

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-ThrottleLimit<Int32>

指定可建立的用于运行此 cmdlet 的并发操作的最大数目。如果省略了此参数或输入了值 0,那么 Windows PowerShell® 将基于正在计算机上运行的 CIM cmdlet 的数目,计算 cmdlet 的最佳中止值。中止值仅适用于当前 cmdlet,而不适用于会话或计算机。

别名

是否为必需?

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_WdsBootImage

示例

Example 1: Export a boot image

This command exports the boot image named Fabrikam LOB setup (x86) for the x86 architecture. The command exports the image to the file named exported.wim. The command specifies a description for the exported image. The Force parameter specifies that the cmdlet overwrites a file that has the same name without prompting you for confirmation.

PS C:\> Export-WdsBootImage -Architecture x86 -Destination "D:\images\exported.wim" -ImageName "Fabrikam LOB setup (x86)" -NewDescription "Fabrikam LOB exported from server" -Force

相关主题

Get-WdsBootImage

Set-WdsBootImage

Enable-WdsBootImage

Disable-WdsBootImage

Remove-WdsBootImage

Import-WdsBootImage