I have 2 vCenter servers vcA & vcB in linked mode and I connect like below...
Connect-VIServer -Server "vcA.labcloud.net" -AllLinked
I get the expected output of all the customization specs from both vCenter servers like below...
win2016x64_a
win2012r2_b
win2019_gui_b
win2016x64_a
win10x64pro_b
win2012r2_a
win2019_gui_a
win2008r2_a
Naturally "a" means it's a customizationspec from vcA and the "b" is a customization from vcB.
Is it possible to get the output to have the first column have the vcenter server name that the customization spec is from like below in a CSV?
vcA,win2016x64_a
vcB,win2012r2_b
vcB,win2019_gui_b
vcA,win2016x64_a
vcB,win10x64pro_b
vcA,win2012r2_a
vcA,win2019_gui_a
vcA,win2008r2_a
I know the a & b visually you can see what vcenter it belongs to but I want to put it in a SQL table for something else and the vcenter name column is needed for the where clause.
Thanks