Hello,
Can someone please help me to find this:
I have 2 commands to get the VMs lists (T1 for getting the VMs tag name and T2 for getting the VMs that has no Tags.
Here for T1, I am getting only VM name and Tag name. Is there any way we can add vCenter name too in the report like below ?
Name Tags vCenter Name
---- ---- -------
$T1 = Get-VM | Select Name,@{Name="Tags";Expression={(Get-TagAssignment -Entity $_).Tag.Name}}
$T2 = get-vm | ?{ (get-tagassignment $_) -eq $null}
Also how can generate both output in single .xlsx or .csv format like T1 worksheet name is 'Tags' and T2 is 'No Tags'