How can I search all the VMware Datastores in vCenter?

Problem:

How can I search all the VMware Datastores in vCenter?

Solution:

Run the below PowerCLI

Connect-Viserver servername

dir -Recurse -Path vmstores:\ -Include *vmname* | select Name,DatastoreFullPath,LastWriteTime | Export-Csv -NoTypeInformation -UseCulture -Path c:\temp\datastoreinfo.csv 

Leave a Reply

Your email address will not be published. Required fields are marked *