Is there any scripts of powershell to get the all file details of vm like vmx,vmdk,snapshots,log files and other files.
Play around with:
dir -Recurse -Path datastore:\ -Include *vmname* | select Name,DatastoreFullPath
Hope to help
View solution in original post
What details are you looking for? Can you please elaborate? Do you want it in any specific format?
how to get these files in powershell.
Try my example with "sles12sp3" instead of vmname
I got this error.
I think you can use RVTools for this to get the report
Your datastore is named "datastore16" not "datastore" as in my example
i got this output.
it may be directing in the local machine.
is there any way by this method.
Dir vmstores:\ip@portno\ha-datacenter\datastore16\ | select-object name
I got the output what I expected from you.