VMware Cloud Community
esxinoob
Enthusiast
Enthusiast
Jump to solution

List of VM disk type

Hi

Is there a way to list all the vmdks with their disk type?

I already have the command to show all the thin allocated disks:

Get-VM | where {($_ | Get-HardDisk | %{$_.StorageFormat}) -contains "Thin"} | select Name

Thanks for ur help.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You mean something like this ?

Get-VM | Get-Harddisk | 
Select @{N="VM";E={$_.Parent.Name}},Name,StorageFormat,DiskType,
 
@{N="DiskType2";E={$_.ExtensionData.Backing.GetType().Name}}


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

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

You mean something like this ?

Get-VM | Get-Harddisk | 
Select @{N="VM";E={$_.Parent.Name}},Name,StorageFormat,DiskType,
 
@{N="DiskType2";E={$_.ExtensionData.Backing.GetType().Name}}


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

0 Kudos