1 连接vcenter
Connect-VIServer -Protocol https -User '[email protected]' -Password 'Vcenter密码' -Server Vcenter地址192.168.x.x
2 查看Vcenter主机Get-VMHost
3 添加exsi主机到Vcenter
Add-VMHost -Name 192.168.242.136 -Location (Get-Datacenter data) -User root -Password 'esxi密码'
来自为知笔记(Wiz)
标签:批量,Get,esxi,192.168,添加,主机,Vcenter From: https://www.cnblogs.com/kaixin940/p/16911859.html