IT Process Automation

 View Only
  • 1.  Using Named Connection in PowerCLI

    Posted Mar 26, 2015 11:13 AM

    I have connections in Vcenter, registered in Named Connection.

    2015-03-26 12_04_04-CA Process Automation 4.2 SP02.jpg


    Created a process that calls a batch file and this in turn interacts with the PowerCLI.


    2015-03-26 12_06_14-CA Process Automation 4.2 SP02.jpg
    In PowerCLI I have the command line below:

     Connect-VIServer $ vCenter -User $ vUsuario -Password $ vPass> $ null



    Is there a way to break up the Connection Name and use the URL given in my variable $ vCenter, and -User $ vPass?





  • 2.  Re: Using Named Connection in PowerCLI

    Posted May 05, 2015 04:51 PM

    Anyone have an answer for Everton?

     

     

    Using Named Connection in PowerCLI

     

     

    I have connections in Vcenter, registered in Named Connection.

    2015-03-26 12_04_04-CA Process Automation 4.2 SP02.jpg


    Created a process that calls a batch file and this in turn interacts with the PowerCLI.


    2015-03-26 12_06_14-CA Process Automation 4.2 SP02.jpg
    In PowerCLI I have the command line below:

     

    1. Connect-VIServer $ vCenter -User $ vUsuario -Password $ vPass> $ null 



    Is there a way to break up the Connection Name and use the URL given in my variable $ vCenter, and -User $ vPass?



  • 3.  Re: Using Named Connection in PowerCLI
    Best Answer

    Broadcom Employee
    Posted Sep 29, 2015 04:47 PM

    Not sure I understand the request here Poyato, but maybe you could place the entire line

    Connect-VIServer $ vCenter -User $ vUsuario -Password $ vPass> $ null 

    in the script itself?