The PE system I use is generally without the .net framework. I usually maintain the system.
Is there any good way to extract complete hard drive information?
I need to get three pieces of information:
1. How many physical hard disks are there? What type of hard disk partition is (MBR or GPT)
2. If it is a GPT type hard disk partition, what is the serial number of the ESP partition?
3. Information about all partitions on each physical hard disk, including hidden partitions(Currently only the diskpart command can display hidden partition information.)
——————————————————————————————————————————
For example the picture below:
1. There are 2 disks, the disk 0 partition type is GPT, and the disk 1 partition type is MBR.
2. Disk 0, ESP partition number is 1
I found a very powerful batch file to get the hard drive information,
but I don't know how to extract the useful code inside.
Is there any good way to extract complete hard drive information?

I need to get three pieces of information:
1. How many physical hard disks are there? What type of hard disk partition is (MBR or GPT)
2. If it is a GPT type hard disk partition, what is the serial number of the ESP partition?
3. Information about all partitions on each physical hard disk, including hidden partitions(Currently only the diskpart command can display hidden partition information.)
——————————————————————————————————————————
For example the picture below:
1. There are 2 disks, the disk 0 partition type is GPT, and the disk 1 partition type is MBR.
2. Disk 0, ESP partition number is 1
I found a very powerful batch file to get the hard drive information,
