2 Replies Latest reply on Apr 29, 2013 1:44 PM by jessem

    Add new portgroup to entire Cluster

    jessem Enthusiast



      Currently, I have the powercli script to add a new portgroup to an existing switch on one host.  I'm looking to see how to do this on an entire cluster given that the vSwitch I want to add it to is the same vSwitch across all hosts.


      Get-VMHost -Name ESXI01 | Get-VirtualSwitch -Name vSwitch1 | New-VirtualPortGroup -Name PG400 -VLanId 697


      This command works but instead of doing it one host at a time, what is the proper syntax to apply to entire cluster?