2024-05-21PowerCli监控Esxi硬件状态 #在CentOS上安装powershell-lts-7.0.1-1.rhel.7.x86_64.rpm#然后将VMware-PowerCLI-12.4.1-18769701.zip解压后拷贝到/opt/microsoft/powershell/7-lts/Modules/目录下Connect-VIServer-Server$VMHost-username$UserName-Password$PassWord$VMHostObj=Get-VMHost