您的位置:首页 > 其它

VMware: Add PortGroup to all hosts in cluster with PowerCLI

2016-09-21 17:47 465 查看
Today we configured a new VLAN on the physical switches, now we need to
configure a portgroup with vlan id on multiple ESX hosts in our cluster. To do
this by hand it will cost 3 minutes per host, to script this.. you configure
this in 10 seconds!
The script:
Get-Cluster “clustername” | Get-VMHost | Get-VirtualSwitch -Name
“vSwitch0″ | New-VirtualPortGroup -Name “VLAN-23-Citrix Provisioning” -VLanId
23



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  PortGroup
相关文章推荐