AnsweredAssumed Answered

Using Named Connection in PowerCLI

Question asked by Poyato on Mar 26, 2015
Latest reply on Sep 29, 2015 by MWNiebuhr

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?



Outcomes