Hey guys,
I use the attached script alot to maintain my environment of 500+ vSAN 6.7 hosts. I was wondering if it was possible to change it to connect to all linked vCenters so I can specify hosts in different vCenters in one text file? All the hosts are in 8 linked vCenters.
Did you already try using the AllLinked switch to the Connect-VIServer cmdlet?
No I have not, should I add that to the text inside the .PS1 file?
Yes, on the Connect-VIServer line
Connect-VIServer -Server $vCenterServer -AllLinked | Out-Null