I have an odd problem I have yet to find a solution for. I am connecting to 14 vCenter servers/750+ hosts each as part of a larger script (at times) using -AllLinked. The issue I am having is some settings we look at are based on an XML file that defines the vCenter but with -AllLinked that breaks down. I am thinking I may need to add another attribute to define a pointer but was more curious if there is a Get-View out there that shows the vCenter the host is connected to? I have been looking but so far no luck.
Thanks in advance!
Try like this
Get-View -ViewType HostSystem -Property Name |
Select Name,
@{N='vCenter';E={([uri]$_.Client.ServiceUrl).Host}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Try like this
Get-View -ViewType HostSystem -Property Name |
Select Name,
@{N='vCenter';E={([uri]$_.Client.ServiceUrl).Host}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I knew it had to be in there!! Much better to add an if then a new script to add a few thousand lines of xml...