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
Can't you just login with :
connect-viserver Vcenter01.domain.bla -user domain\user -pass Password
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
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
Can't you just login with :
connect-viserver Vcenter01.domain.bla -user domain\user -pass Password
Works perfect.
thanks
vmk2014