Hi Luc,
Here's the output:
Connect-VIServer : 21/8/2013 9:28:09 AM Connect-VIServer Could not
resolve the requested VC server.
At C:\Citi_Scripts\Snapsots_30days.ps1:20 char:1
+ Connect-VIServer -Server $vCenterIP -User $vCenterUser -Password
$vCenterPasswor ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : ObjectNotFound: (:) [Connect-VIServer], ViServer
ConnectionException
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_NameR
esolutionFailure,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVISer
ver
Although I am able to use the same IP and credentials and connect manually.