PowerShell: How to get windows disk layout, e.g. simple or spanned?

Viewed 86

In the diskmgmt.msc, I can see the disk layout info as below:

enter image description here

I am trying to get the same information through PowerShell. None of the usual disk and volume related commands seemed to have the info. Now, I am not sure how true this is but I was told that list volume in disk part holds this information as below:

enter image description here

However, disk part info is often error-prone to parse programmatically. I was wondering if anybody knows of a better way to do this?

0 Answers
Related