Click here to Skip to main content
13,052,558 members (71,976 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I am new for PowerCLI Scripting. If I connect with my local host ( Its connected successfully. But If I connect with Virtual Machine ( Its throws an error. Details as follows.

PowerCLI C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Connect-VIServ
er -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
At line:1 char:17
+ Connect-VIServer <<<< -User Administrator
    + CategoryInfo          : ObjectNotFound: (:) [Connect-VIServer], ViServer
    + FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_BadNe

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 25-May-12 4:49am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 25 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100