VMware Cloud Community
vmk2014
Expert
Expert
Jump to solution

Connect VCenter server using Domain Ids and password

Hi,

  I wanted to connect Vcenter server through powercli but its always takes my default windows credentials when i connect using Connect-VIServer -Server vcenter01 rather than my domain ids and password.My credentials for vcenter server is different  from Windows credentials.Please let me know the command for connecting VI server using domain credentials.

Thanks

vmk2014

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Wh33ly
Hot Shot
Hot Shot
Jump to solution

Can't you just login with :

connect-viserver Vcenter01.domain.bla -user domain\user -pass Password

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

You can use the User and Password parameters (or the Credential parameter) on the Connect-VIServer cmdlet to do that.

See also Back to Basics: Connecting to vCenter or a vSphere Host


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
vmk2014
Expert
Expert
Jump to solution

Hi LucD,

     My Windows desktop and the Vcenter Server is in different domain so while connecting the vcenter server its connects Window desktop domain with desktop credential  rather than particular Domain where the vcenter server is exist.please let me know how to connect using AD credentials.

Eg.

Connect-VIServer "vcenter01" -User user -Password pass -SaveCredentials -Domain KA

Thanks

vmk2014

0 Kudos
Wh33ly
Hot Shot
Hot Shot
Jump to solution

Can't you just login with :

connect-viserver Vcenter01.domain.bla -user domain\user -pass Password

0 Kudos
vmk2014
Expert
Expert
Jump to solution

Works perfect.

thanks

vmk2014

0 Kudos