Hello,
I have some commands to check the VMs that has the snapshot name:
$VMlist = get-vm
Get-Snapshot -VM $VMlist | where{$_.Description -eq 'Prior to install VMTools'}
But the output is displaying like this. Is there anyway I can see the VM names in the result?
You could use nested Where-clauses.
Get-VM |
Where-Object{Get-SNapshot -VM $_ | Where-Object{$_.Description -eq 'Prior to install VMTools'}} |
Select-Object -Property Name
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You could use nested Where-clauses.
Get-VM |
Where-Object{Get-SNapshot -VM $_ | Where-Object{$_.Description -eq 'Prior to install VMTools'}} |
Select-Object -Property Name
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The returned Snapshot object contains a property Created, which you can add on the Select-Object cmdlet.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you