VMware Cloud Community
lucasbernadsky
Hot Shot
Hot Shot
Jump to solution

Connect to all linked vCenter Servers with only one Connect-ViServer from PowerCLI

Hi Community.

In our company we have multiple vCenters linked with Enhaced Linked Mode, and every time I need to run a PowerCLI script globally, I need to manually connect to every single one of the vCenter Servers.

Is there any way of automatically connecting to every linked vCenter Server?

Thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
ryanrpatel
Enthusiast
Enthusiast
Jump to solution

Just do this:

Connect-VIServer SERVER -AllLinked

View solution in original post

Reply
0 Kudos
3 Replies
Nawals
Expert
Expert
Jump to solution

Hi,

this link may help you. Running a PowerCLI script against multiple vCenters at the same time

NKS Please Mark Helpful/correct if my answer resolve your query.
Reply
0 Kudos
ryanrpatel
Enthusiast
Enthusiast
Jump to solution

Just do this:

Connect-VIServer SERVER -AllLinked

Reply
0 Kudos
scott28tt
VMware Employee
VMware Employee
Jump to solution

Moderator: Thread moved to the PowerCLI area.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos