Automation

 View Only
  • 1.  Connect-VIServer causing two sessions

    Posted Nov 11, 2009 09:23 PM

    We are using VI Toolkit 1.5. I have powershell embedded in a Visual Studio 2005 C# project through runspaces. When calling a Connect-VIServer to a 2.5 server it causes two sessions to open only one of which I can disconnect from. This works fine against a 2.0 server. And the login works fine from the standard powershell prompt.

    Any ideas?



  • 2.  RE: Connect-VIServer causing two sessions

    Posted Nov 11, 2009 09:40 PM

    Perhaps you should upgrade to PowerCLI 4.

    Or is there a reason to stick with Vi Toolkit 1.5 ?



  • 3.  RE: Connect-VIServer causing two sessions

    Posted Nov 11, 2009 10:50 PM

    I tried this, but it's the same problem.