Syntax
Remove-VMHostProfileVmPortGroupConfiguration [-VmPortGroupConfiguration] <VMHostProfileVmPortGroupConfiguration[]> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
Removes the given virtual machine port group configuration from the host profile.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
VmPortGroupConfiguration | VMHostProfileVmPortGroupConfiguration[] | Specifies the configuration that you want to remove. | true | True (ByValue) | |
Server | VIServer[] | 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. | false | True (ByValue) |
Return Type
NoneNotes
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.