We are decomm'ing servers and I am looking for the command that would list our the lun folder and file paths.
Get-VM | ? {$_.Name -like "*nus-4*"} | ft name, powerstate,harddisks, ?
Thank you!
You mean something like this ?
Get-VM | Get-HardDisk |
Select @{N='VM';E={$_.Parent.Name}},
@{N='PowerState';E={$_.Parent.PowerState}},Name,FileName
Thanks again. That is perfect!