通过管理员打开window powershell,安装VMware的powercli 模块
https://www.powershellgallery.com/packages/VMware.PowerCLI/12.0.0.15947286
在powershell 执行以下命令安装vmware 的poercli 模块
Install-Module -Name VMware.PowerCLI
安装之后连接主机时报如下错误:
因为证书不受信任,所以建立连接失败
解决办法:
设置证书忽略
PS C:\windows\system32> Set-PowerCLIConfiguration -InvalidCertificateAction ignore