Set-SCVirtualNetworkAdapterPortProfileSet
设置虚拟网络适配器端口配置文件集的属性。
语法
Set-SCVirtualNetworkAdapterPortProfileSet
[-IsDefaultPortProfileSet <Boolean>]
[-LogicalSwitch <LogicalSwitch>]
[-PortClassification <PortClassification>]
[-VirtualNetworkAdapterNativePortProfile <VirtualNetworkAdapterNativePortProfile>]
[-AddVirtualNetworkAdapterExtensionPortProfiles <VirtualNetworkAdapterExtensionPortProfile[]>]
[-RemoveVirtualNetworkAdapterExtensionPortProfiles <VirtualNetworkAdapterExtensionPortProfile[]>]
[-VMMServer <ServerConnection>]
[-VirtualNetworkAdapterPortProfileSet] <VirtualNetworkAdapterPortProfileSet>
[-Name <String>]
[[-Description] <String>]
[-RemoveVirtualNetworkAdapterNativePortProfile]
[-JobGroup <Guid>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
Set-SCVirtualNetworkAdapterPortProfileSet cmdlet 更新虚拟网络适配器端口配置文件集对象的属性。
示例
示例 1:从虚拟网络适配器端口配置文件集中删除虚拟网络适配器本机端口配置文件
PS C:\> Get-SCVirtualNetworkAdapterPortProfileSet -Name "VirtualNetworkAdapterPortProfSet01" | Set-SCVirtualNetworkAdapterPortProfileSet -RemoveVirtualNetworkAdapterNativePortProfile
此命令获取名为 VirtualNetworkAdapterPortProfSet01 的虚拟网络适配器端口配置文件集对象,并使用管道操作员将对象传递给 Set-SCVirtualNetworkAdapterPortProfileSet,该对象从虚拟网络适配器端口配置文件集对象中删除虚拟网络适配器本机端口配置文件。
参数
-AddVirtualNetworkAdapterExtensionPortProfiles
指定此 cmdlet 添加的虚拟网络适配器扩展端口配置文件数组。
Type: | VirtualNetworkAdapterExtensionPortProfile[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Description
指定端口配置文件集的说明。
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IsDefaultPortProfileSet
指示这是默认端口配置文件集。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
在运行最后一个包含相同作业组标识符的命令之前,为作为集合运行的一系列命令指定标识符。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定跟踪作业进度,并将其存储在此参数命名的变量中。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogicalSwitch
指定逻辑交换机对象。
Type: | LogicalSwitch |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
指定 Virtual Machine Manager (VMM) 对象的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PortClassification
指定虚拟网络适配器连接到的交换机的端口分类。
Type: | PortClassification |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveVirtualNetworkAdapterExtensionPortProfiles
指定虚拟网络适配器扩展端口配置文件的数组。
Type: | VirtualNetworkAdapterExtensionPortProfile[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RemoveVirtualNetworkAdapterNativePortProfile
指示此 cmdlet 删除指定的虚拟网络适配器本机端口配置文件。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业异步运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VirtualNetworkAdapterNativePortProfile
指定虚拟网络 adapater 本机端口配置文件对象。
若要获取虚拟网络适配器本机端口配置文件对象,请使用 Get-SCVirtualNetworkAdapterNativePortProfile cmdlet。
Type: | VirtualNetworkAdapterNativePortProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VirtualNetworkAdapterPortProfileSet
指定虚拟网络适配器端口配置文件集对象。
若要获取虚拟网络适配器端口配置文件集对象,请使用 Get-SCVirtualNetworkAdapterPortProfileSetcmdlet。
Type: | VirtualNetworkAdapterPortProfileSet |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
指定VMM 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |