Remove-SCVirtualNetworkAdapterNativePortProfile
删除虚拟网络适配器本机端口配置文件。
语法
Remove-SCVirtualNetworkAdapterNativePortProfile
[-VMMServer <ServerConnection>]
[-VirtualNetworkAdapterNativePortProfile] <VirtualNetworkAdapterNativePortProfile>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Remove-SCVirtualNetworkAdapterNativePortProfile cmdlet 删除虚拟网络适配器本机端口配置文件。
示例
示例 1:删除虚拟网络适配器本机端口配置文件
PS C:\> Get-SCVirtualNetworkAdapterNativePortProfile -Name "VirtualNetworkAdapterNativePortProf01" | Remove-SCVirtualNetworkAdapterNativePortProfile
此命令获取名为 VirtualNetworkAdapterNativePortProf01 的虚拟网络适配器本机端口配置文件对象,并将对象传递给 Remove-SCVirtualNetworkAdapterNativePortProfile,该对象将删除配置文件对象。
参数
-Confirm
提示你在运行 cmdlet 之前进行确认。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
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 |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
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
指定虚拟网络适配器本机端口配置文件对象。
若要获取虚拟网络适配器本机端口配置文件对象,请使用 Get-SCVirtualNetworkAdapterNativePortProfile cmdlet。
Type: | VirtualNetworkAdapterNativePortProfile |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
指定 Virtual Machine Manager (VMM) 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
显示在此 cmdlet 运行的情况下将会发生什么。 此 cmdlet 未运行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |