I'm starting with Powershell VMWare module.
In Vsphere client I can see the folder structure:
View->Inventory->"VMs and templates"
Within that folder I have the subfolder <server>\Production\MED
How can I verify that the folder exists using Powershell VMWare cmdlets:
And also the VMs in that foler
You could use my Get-FolderByPath function in Folder By Path
If no object is returned, the folder does not exist.
Note that the path starts with the Datacenter.