Trimming a list of VMs according to name

Simple one this is – if you have VMs which have an identifier in them, for example “dc” for domain controller then to search, it is best to convert the VM name to upper/lower case before doing a comparison.

PowerShell

1

Get-VM|?{$_.Name.ToLower()-Like"*dc*"}

Snapshots

This will show all the VMs in a vCenter that have a snapshot with their corresponding age.