Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new for PowerCLI Scripting. If I connect with my local host (192.168.1.170). Its connected successfully. But If I connect with Virtual Machine (192.168.1.179). Its throws an error. Details as follows.

CSS
PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Connect-VIServ
er 192.168.1.179 -User Administrator
Connect-VIServer : 5/25/2012 7:59:02 PM    Connect-VIServer        Network conn
ectivity error occured. Please verify that the network address and port are cor
rect.
At line:1 char:17
+ Connect-VIServer <<<<  192.168.1.179 -User Administrator
    + CategoryInfo          : ObjectNotFound: (:) [Connect-VIServer], ViServer
   ConnectionException
    + FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_BadNe
   tworkConnection,VMware.VimAutomation.ViCore.Cmdlets.Commands.ConnectVIServ
  er


Note: if I ran the Script Get-VM. I don't get any VM name.

Please Help me. what all are step I do???
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900