Try with
Get-VM | Get-Annotation | where{$_.Name -eq 'attribute here'} | Select @{N='VM';E={$_.AnnotatedEntity.Name}},Value
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
------------------------------
Original Message:
Sent: Jan 06, 2025 03:03 PM
From: Fborges555
Subject: Custom attribute
I did try the following but the name of the VM does not come up
get-vm | Get-Annotation | Where { $_.Name -eq "attribute here" } | Select-Object -ExpandProperty Value,vm
Thanks for jumping in
Original Message:
Sent: Jan 06, 2025 12:50 PM
From: LucD
Subject: Custom attribute
Can you share the code you tried?
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: Jan 06, 2025 10:45 AM
From: Fborges555
Subject: Custom attribute
Hi gurus
I would like to get list of all vm and its certain custom attribute values my $vm.CustomFields.values does not bring any values
can someone help please
Thanks a bunch