PowerCLI Reference

Remove-VMHostProfileVmPortGroupConfiguration

Synopsis

Removes the given virtual machine port group configuration from the host profile.

Syntax

Remove-VMHostProfileVmPortGroupConfiguration [-VmPortGroupConfiguration] <VMHostProfileVmPortGroupConfiguration[]> [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online Version
Get-VMHostProfileVmPortGroupConfiguration
Set-VMHostProfileVmPortGroupConfiguration
New-VMHostProfileVmPortGroupConfiguration

Detailed Description

Removes the given virtual machine port group configuration from the host profile.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VmPortGroupConfigurationVMHostProfileVmPortGroupConfiguration[]Specifies the configuration that you want to remove.trueTrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseTrue (ByValue)

Return Type

None

Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> $conf = Get-VMHostProfileVmPortGroupConfiguration -HostProfile 'Host_Profile' -PortGroup 'VM Network2'
PS C:\> Remove-VMHostProfileVmPortGroupConfiguration -VmPortGroupConfiguration $conf

Removes the virtual machine port group configuration 'VM Network2' from the host profile.


Copyright © VMware, Inc. All rights reserved.