Adding a Virtual PortGroup to all Hosts

Connect-VIServer -Server <vCenter Server>
Get-VMHost | Get-VirtualSwitch -Name <vSwitch Number> | New-VirtualPortGroup -Name <Virtual PortGroup
 Name> -VLanId <VLan ID>
Disconnect-VIServer -Confirm:$false
 
Get Adobe Flash player
Tweet
Share
Share
+1
0 Shares