IT Process Automation

Expand all | Collapse all

Using Named Connection in PowerCLI

Jump to Best Answer
  • 1.  Using Named Connection in PowerCLI

    Posted 03-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 05-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

    Posted 09-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?