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,
You mean like this?
Get-HardDisk |
Select @{N='VM';E={$_.Parent.Name}},Name,Persistence
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference