VMware Cloud Community
mdangel1
Enthusiast
Enthusiast
Jump to solution

Need a PowerShell Script to list all my datastores, capacity, and VMFS format.

All,

I need a script  to list all my datastores, capacity, and VMFS format.

This is what I have so far but its not giving me the output I need.

Get-Datastore -Datacenter MN_PROD | where {$_.Type -eq "VMFS"} | Select-Object Name,@{N="VMFS version";E={$_.Info.Vmfs.Version}}

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try like this

Get-Datastore -Datacenter MN_PROD | 
where {$_.Type -eq "VMFS"} |
Select-Object Name,CapacityGB,
   
@{N="VMFS version";E={$_.FileSystemVersion}}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Try like this

Get-Datastore -Datacenter MN_PROD | 
where {$_.Type -eq "VMFS"} |
Select-Object Name,CapacityGB,
   
@{N="VMFS version";E={$_.FileSystemVersion}}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos