Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enumerate hard disks, exclude partitions
#35
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? Huh

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, Smile  but I don't know how to extract the useful code inside.


Attached Files Image(s)
   

.zip   DP_script.zip (Size: 12.3 KB / Downloads: 272)


Messages In This Thread
Enumerate hard disks, exclude partitions - by win - 09-08-2018, 09:34 PM
RE: Enumerate hard disks, exclude partitions - by win - 02-14-2019, 02:59 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)