I have a list of vms in a txt file.
$VM = Get-Content filename.txt
For each VM I want to the following:
Name
Powerstate
Tags
The Tag I want to verify is category = Exclude.
I am not sure how to get that in one simple script.
Something like this?
Select Name,PowerState,
@{N='Exclude';E={(Get-TagAssignment -Entity $_ -Category 'Exclude').Tag}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Something like this?
Select Name,PowerState,
@{N='Exclude';E={(Get-TagAssignment -Entity $_ -Category 'Exclude').Tag}}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you, Luc. I was overthinking it. Keep it simple