< Back

Remove-VMHostProfileVmPortGroupConfiguration

Sun Jan 19, 2020 7:06 pm

NAME Remove-VMHostProfileVmPortGroupConfiguration



SYNOPSIS

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





SYNTAX

Remove-VMHostProfileVmPortGroupConfiguration [-VmPortGroupConfiguration] <VMHostProfileVmPortGroupConfiguration[]>

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





DESCRIPTION

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





PARAMETERS

-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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-VmPortGroupConfiguration <VMHostProfileVmPortGroupConfiguration[]>

Specifies the configuration that you want to remove.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

VMware.VimAutomation.ViCore.Types.V1.Host.Profile.VMHostProfileVmPortGroupConfiguration[]





VMware.VimAutomation.ViCore.Types.V1.VIServer[]







OUTPUTS

None







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... ofile.html

Get-VMHostProfileVmPortGroupConfiguration

Set-VMHostProfileVmPortGroupConfiguration

New-VMHostProfileVmPortGroupConfiguration