Monday, December 2, 2013

Mass Removal of VM Port Group

Here's a quick one-liner to remove a port group from all hosts on vCenter using standard vSwitches...in this case, vSwitch0



get-vmhost | Get-VirtualSwitch -Name vSwitch0 | Get-VirtualPortGroup -Name PORTGROUPNAME | Remove-VirtualPortGroup

No comments:

Post a Comment

Featured Post

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny perc...