Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Get-OSCustomizationSpec - From connection to linked vCenter Servers

$
0
0

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


Viewing all articles
Browse latest Browse all 175326

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>