Created
October 19, 2015 22:30
-
-
Save joeywas/38cfc4e6bec7d71c25aa to your computer and use it in GitHub Desktop.
Add new virtual port group on all vswitches on all hosts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foreach ($vmhost in (get-vmhost)) | |
{ | |
$vswitch0 = Get-VirtualSwitch -VMHost $vmhost -Name vSwitch0 | |
New-VirtualPortGroup -VirtualSwitch $vswitch0 -Name VLAN200 -VLanID 200 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment