I am having an issue setting up this method....
I believe I have the HostDatstoreBrowserSpec figured out just by
$spec=New-Object VMware.Vim.HostDatastoreBrowserSearchSpec
$spec.matchpattern= vmname.vmx
Atleast I don't think I need much more than that, but I could certainly be wrong...
I guess I just can't quite figure out the best way to make the method call, I tried something like this
(get-datastore|get-view).browser.searchdatastore_task($spec)
With no luck..
I want to be able to search all the datstores in one go. I also tried just using psdrives and get-childitem -recurse...but it takes forever!
Any help would be greatly appreciated.