I am trying to make a report that shows all VMs with a specific NSX tag and then the creation dates for those VMs. This is what I got so far without the creation date even and I can't seem to get this to pull correctly.
$report = Get-VM | where {(Get-NsxSecuritytagassignment -VirtualMachine $_) -eq 'TEST'} | select name
I was misled by your snippet.
That should probably be
select Name,CreateDate
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
For the VMs that are created in vSphere 6.7, and with a recent PowerCLI version, you can do
select Name,CreateDate
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Somehow this doesn't print any VMs, but I just checked and I definatly do have a VM tagged with "TEST"
I was misled by your snippet.
That should probably be
select Name,CreateDate
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference