Need help to get the disk lay out details

I would need your help to write a code to get the disk layout details ( Eg : Sample, Spanned etc) windows.

Sujin Nelladath,
Welcome to the forum. :wave:t4:

What kind of help do you need? What have you tried so far?

This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

Thanks for the response. I have tried the get-disk, Get-volume and get-partition to get the above requested data. I would just like to know if any one from the forum tried to write the code and get the details before. Seems like the layout data of a disk is getting captured through any command.

The question “What have you tried so far?” actually means “Please show the code you used so far”. :wink:

Do you have a specific question about a particular piece of code you wrote and you’ve got stuck with?