Remove-VMHostProfileVmPortGroupConfiguration

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

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
VmPortGroupConfiguration
VMHostProfileVmPortGroupConfiguration[] named
  • pipeline
  • Specifies the configuration that you want to remove.
    optional
    Server
    VIServer[] named
  • pipeline
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null 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.

    Output

    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.

    Related Commands

    Feedback

    Was this page helpful?