How to view datastores using PowerCLI

Home > Search > How-to
  by

  1. Download and install PowerCLI from www.vmware.com.
  2. In PowerCLI, using the following command to connect to your ESXi hypervisor:
Connect-VIServer -Server server_name -User username -Password password
  1. 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

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments