VMware Cloud Community
Sivaramsharmar
Enthusiast
Enthusiast
Jump to solution

Connect to vCenter Using Same Session with PowerCLI

Hi All,

Is there any way that we can establish multiple Connections to vCenter using same session with Powercli.

As connect-viserver -server "vcenter1" -user domain\domainacnt -password "Password"

is establishing multiple connections and we want to limit it, as we are in progress of developing web based Report generation using Powercli with IIS.

Please suggest.

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You can use the Session parameter on the Connect-VIServer cmdlet.

I use this for PowerShell Workflows, see PowerCLI and PowerShell Workflows


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
4 Replies
kanishks
Enthusiast
Enthusiast
Jump to solution

Reply
0 Kudos
Sivaramsharmar
Enthusiast
Enthusiast
Jump to solution

Hi Kanishks,

I have looked into this earlier, it will list out the currently connected sessions for vCenter.

But my requirement is how to connect to existing session of vCenter using Powercli.

Thanks for your support.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

You can use the Session parameter on the Connect-VIServer cmdlet.

I use this for PowerShell Workflows, see PowerCLI and PowerShell Workflows


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Sivaramsharmar
Enthusiast
Enthusiast
Jump to solution

Thanks Lucd.

It's working.

Reply
0 Kudos