VMware Cloud Community
LPLAdmin
Enthusiast
Enthusiast

Powercli One Liner for Getting Indpendent/Dependent Modes for Disks

I need a one liner where I can give the script a single VM and have it report the independent or dependent mode for all its disks.

Thanks,

1 Reply
LucD
Leadership
Leadership

You mean like this?

Get-VM -Name MyVM |

Get-HardDisk |

Select @{N='VM';E={$_.Parent.Name}},Name,Persistence


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