PowerCLI: Add New Port Group To Hosts In A Cluster

PowerCLI: Add New Port Group To Hosts In A Cluster

Run the following code below to create new port groups on all hosts within a cluster found this pretty useful

Get-Cluster “Test-Cluster" | Get-VMHost | Get-VirtualSwitch -Name “vSwitch0” | New-VirtualPortGroup -Name “New-Test-Network-DMZ” -VLanId 110

 

Advertisements