Good day fine folks,
I am developing a simple remove-vm that is being initiated by a Web Service. I can run the script from my Windows desktop with no errors. On a W2003 SP2 server, Connect-VIServer fails with the error below both from the PowerCLI and when the script is loaded via the Web Service. All of this worked prior to moving to ESX 5.5.
Command Run: Connect-VIServer $vcserver -User $user -Password $password -EA 'Stop'
Connect-VIServer : 08/10/2014 14:12:32 Connect-VIServer The underlying connection was closed: An unexpected e
rror occurred on a send.
At line:1 char:17
+ Connect-VIServer <<<< VCSERVERFQDN -user USER -password PASS
+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], ViError
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_WebException,VMware.VimAutomation.ViCore.Cmdl
ets.Commands.ConnectVIServer
Troubleshooting
Attached are the version of Powershell, PowerCLI and .NET on each host.
Any help is greatly appreciated.
Is that a Windows 2003 or a Windows 2003 R2 ?
Afaik, PowerCLI 5.1 is not supported on Windows 2003, but it is on Windows 2003 R2.
See the Release Notes
Does restarting the Web Services on the vCenter change anything ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
LucD,
Thanks for responding. It's W2003 Enterprise SP 2. Not R2. That may be the issue.
This may be part of it as well. I'll try to get the appropriate team to try these steps. From the release notes Known issues:
Connect-VIServer
Connect-VIServer
cannot use the Kerberos network authentication protocol to connect to vCenter Server systems that are installed under a custom user account on a Windows system. Connect-VIServer
uses NTLM instead.
Workaround: Install and run vCenter Server under the default system account. Alternatively, you can:
setspn
tool to register an SPN for the new DNS record and associate it with the vCenter Server account under which vCenter Server was installed. setspn -A -HOST/vc-alias.domain.com Domain\VCAccount
Connect-VIServer vc-alias.domain.com