PowerCLI

 View Only
  • 1.  Connect VCenter server using Domain Ids and password

    Posted Aug 13, 2014 05:43 AM

    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



  • 2.  RE: Connect VCenter server using Domain Ids and password

    Posted Aug 13, 2014 06:10 AM

    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



  • 3.  RE: Connect VCenter server using Domain Ids and password

    Posted Aug 13, 2014 01:39 PM

    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



  • 4.  RE: Connect VCenter server using Domain Ids and password
    Best Answer

    Posted Aug 13, 2014 02:11 PM

    Can't you just login with :

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



  • 5.  RE: Connect VCenter server using Domain Ids and password

    Posted Aug 13, 2014 02:29 PM

    Works perfect.

    thanks

    vmk2014