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
Play around with:
dir -Recurse -Path datastore:\ -Include *vmname* | select Name,DatastoreFullPath
Hope to help
What details are you looking for? Can you please elaborate? Do you want it in any specific format?
Cheers,
Supreet
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.
Superb aleex
Dir vmstores:\ip@portno\ha-datacenter\datastore16\ | select-object name
I got the output what I expected from you.
Thanks aleex.