How do I list only the virtual machines which have less than a certain amount of RAM?
For example:
something like
get-vm | where-object {$_.propertyname -lt 4096}
(where I use the name of that property and show only VMs less than 4GB)
Thanks
You want the MemoryMB property
get-vm | where-object {$_.MemoryMB -lt 4096}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
OK thanks - also - how do I list all the properties of a given object on the command line?
great - thanks again