Tag Archives | powercli

Add PortGroup to hosts with PowerCLI

It’s easy to add a new portgroup to all hosts in your cluster or even just one host with PowerCLI.   To add to all hosts in the cluster, use this script: get-cluster “My-Servers” | Get-VMHost | Get-VirtualSwitch -Name “vSwitch2” | New-VirtualPortGroup -Name “VM Mgmt Network VLAN 101” -VLanId 101   To add to one […]

Read full story Comments { 0 }