I want to run a powershell script on a vmware cluster to list all the VM's which are on vmfs datastores. We have a vmware cluster which has a mix of vmfs and nfs datastores, and want to move all the VM's off the vmfs datastores onto the nfs datastores, but first we need a list of the VM's which are on the vmfs datastore in a specific cluster.
Is this possible to run in a vmware powershell script.
I tried that but it errors with that the get-datastore cannot have the pipeline values. I dont think there are any cluster switches with the get-datastore command. anymore ideas on this.