Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 247559

Re: Creating port groups on a vSphere Distributed Switch with PowerCLI

$
0
0

How will you be providing the portgroup names ? In a CSV file ?

If yes, you could do something like

$vds = Get-VDSwitch -Name MyVDS

Import-Csv C:\portgroup-names.csv | %{

   New-VDPortgroup -VDSwitch $vds -Name $_.Name -NumPorts 32

}

This assumes that your CSV looks like

Name

pg1

pg2

pg3


Viewing all articles
Browse latest Browse all 247559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>