Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178776

Scripted Connect-VIServer prompts for credentials when connecting to vCenter 6.5 Appliance

$
0
0

Hi

 

I've created a simple script that connect to each of our vCenter Servers and obtains total number of VMs and Hosts and e-mails it to me once a month.  Untill recently we had only vCenter 6 for Windows in our environment, however now we have introduced vCenter 6.5 Appliance in our environment.

 

There are few lines of code for each vCenter Server in the script, basically all it does is
1. Connects to vCenter Server

2. Obtains total number of VMs managed by the vCenter Server

3. Saves it as a variable

4. Obtains total number of hosts managed by the vCenter Server

5. Saves it as a variable

6. Disconnects from vCenter Server

 

Above process is repeated for each vCenter Server, at the end the script will e-mail results.  The script is working just fine if we are connecting to vCenter 6.0 for Windows, however when it attempts to connect vCenter 6.5 Appliance it prompts for credentials.  If I enter the same credentials I'm logged on with it executes code for that vCenter Server and goes to the next one.  If next one is vCenter 6.5 Appliance it prompts for credentials again.

 

vCenter 6 and vCenter 6.5 Appliance are configured the same, using the same default authentication domain which is an AD.

 

PS Version is 5.1 Build 14409 Revision 1012 and PowerCLI 6.5.4.7155375

 

Does anybody have any idea why this is happening with vCenter 6.5 Appliance?


Viewing all articles
Browse latest Browse all 178776

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>