Wednesday, 30 December 2015

Find VM Datastore By WWN

In order to find any existing VM datastore by WWN use the script below;
Get-Datastore | where {$_.extensiondata.info.vmfs.extent.diskname -like "*WWN*"}
The output will look similar to the below if a datastore is found;

Name                                       FreeSpaceGB      CapacityGB
----                                            -----------                 ----------
san01-lun01                            339.047                 499.750
san01-lun01                            339.045                 499.750

No comments:

Post a Comment