Using PowerShell I select one Volume
querying by name and filesystem with this line:
$volume = Get-Disk | Get-Partition | Get-Volume | Where { $_.FileSystemType -eq 'NTFS' -and $_.FileSystemLabel -eq 'MainOS' } | Select -index 0
But after that, I want to know in which Disk is this Volume
located.
I thought that the Volume object would have a DiskId property, but it doesn't.
Then, how can I know the DiskId of the Volume?