VMWare - View datastores using PowerCLI

by
Jeremy Canfield |
Updated: March 09 2020
| VMWare articles
- Download and install PowerCLI from www.vmware.com.
- In PowerCLI, using the following command to connect to your ESXi hypervisor:
Connect-VIServer -Server server_name -User username -Password password
- List your datastores
dir vmstore:\ha-datacenter
Name FreeSpaceGB CapacityGB
- - - - - - - - - - - - - - - -
datastore1 14.135 1,862.750
datastore2 169.768 465.500
Notice datastore1 has only 14 GB of free space. Let's look at datastore1.
dir vmstore:\ha-datacenter\datastore1
LastWriteTime Type Length Name
- - - - - - - - - - - - - - - -
12/16/2016 Folder CentOS-FS1
Did you find this article helpful?
If so, consider buying me a coffee over at