I'm following this document to upgrade Guest Tools on all my Windows guests after host upgrades, and I want to use the PowerCLI method. The example selects all VMs starting with "prod-":
Get-VM prod-* | ...
I can get all VMs in a specific cluster with:
Get-Cluster clustername | Get-VM | ...
I can get all VMs in a specific folder with:
Get-Folder foldername | Get-VM | ...
What I want is all VMs that are in a specific cluster AND a specific folder, but attempting any combination of the above throws errors. I'm new to PowerCLI/PowerShell... the solution could be glaringly obvious. Can I get a list of all VMs in a specific cluster/folder combination?