使用“VMware vSphere PowerCLI”链接vCenter Server,该主机加入到 域内,而且使用 默认 证书,执行“html
Connect-Viserver <team_vCenter_Server_system_FQDN>” 见出现以下警告!ide
1:57:08 AM Connecting to VI Serverspa
WARNING: There were one or more problems with the server certificate:server
* A certification chain processed correctly, but terminated in a roothtm
certificate which isn't trusted by the trust provider.ip
Certificate: [Subject]get
E=support@vmware.com, CN=foo.example.com, OU="VMware, Inc.", O="VMware, Inc."it
[Issuer]io
E=support@vmware.com, CN=foo.example.com, OU="VMware, Inc.", O="VMware, Inc."class
[Serial Number]
C49018FF
[Not Before]
5/18/2012 9:20:09 AM
[Not After]
5/16/2022 9:20:09 AM
[Thumbprint]
AAA9E2D164E7258D0BF2841173AE46034C097FFF
The server certificate is not valid.
WARNING: THE DEFAULT BEHAVIOR UPON INVALID SERVER CERTIFICATE WILL CHANGE IN A
FUTURE RELEASE. To ensure scripts are not affected by the change, use
Set-PowerCLIConfiguration to set a value for the InvalidCertificateAction
option.
这是由于新版的VMware vSphere PowerCLI 对使用默认SSL的限制。
解决办法:使用管理员权限运行“PowerCLI”,若是是WIN2008/7/8/2012,右键使用管理员运行
执行 set-PowerCLIConfiguration -invalidCertificateAction "ignore" -confirm:$false
http://www.vmware.com/support/developer/PowerCLI/PowerCLI51/html/Set-PowerCLIConfiguration.html