VMware Cloud Community
alanrenouf
VMware Employee
VMware Employee

Connect-VIServer fails to pass current logged on credentials to VC

I thought I would add this here in case anyone searches for this problem...

When using Connect-VIServer on a machine that is in the same domain as the vCenter Server it should pass my logged on credentials in.

VC is in domain and I can log into the web client with my domain credentials. The machine I am on is in the same domain


Connect-VIServer VC01

--> Prompts me for creds when it should pass through my creds

Connect-VIServer VC01 -Username corp\administrator -password VMware1!

--> Using the same credentials as i am logged into the machine as connects fine


This is a configuration issue with vCenter mentioned in this KB article which offers a solution that worked in our environment:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=205070...


After applying the config change we got it working, a tip is to always enable verbose mode for this cmdlet as it gives a lot of information.


PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Connect-VIServer vc-01a.corp.local

DEBUG: Logging in to server.

VERBOSE: Attempting to connect using SSPI

VERBOSE: Reversely resolved 'vc-01a.corp.local' to 'vc-01a.corp.local'

VERBOSE: SSPI Kerberos: Acquired credentials for user 'CORP\Administrator'

VERBOSE: SSPI Kerberos: Successful call to InitializeSecurityContext for target 'host/vc-01a.corp.local'

VERBOSE: Connected successfully using SSPI

VERBOSE: Attempting to connect using SSPI

VERBOSE: Reversely resolved 'vc-01a.corp.local' to 'vc-01a.corp.local'

VERBOSE: SSPI Kerberos: Acquired credentials for user 'CORP\Administrator'

VERBOSE: SSPI Kerberos: Successful call to InitializeSecurityContext for target 'host/vc-01a.corp.local'

VERBOSE: Connected successfully using SSPI

DEBUG:

DEBUG: logged in to server vc-01a.corp.local:443

Name Port User

---- ---- ----

vc-01a.corp.local 443 CORP\Administrator

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Tags (1)
Reply
0 Kudos
0 Replies