安装PowerCLI
下载安装包:https://docs.vmware.com/cn/VMware-vSphere/7.0/com.vmware.esxi.install.doc/GUID-F02D0C2D-B226-4908-9E5C-2E783D41FE2D.html
下载压缩包后,将其解压到C:\Windows\System32\WindowsPowerShell\v1.0\Modules目录下
Set-ExecutionPolicy unrestricted -force
Set-PowerCLIConfiguration -InvalidCertificateAction ignore
Import-Module vmware.vimautomation.core