How to find out the size of the physical disk (not partition!) In Windows 7 up to a byte?

Computer Management -> Disk Management shows the value in GB.

  • support.microsoft.com/en-us/kb/245436 simply speaking try cmdk to execute chkdsk - Invision
  • @Invision 1. This is something old. 2. I do not need the cluster size, I need the size of the physical disk. 3. chkdsk does not work with physical disks, only with partitions. - Qwertiy
  • How do you want to do this? Programmatically? - MaximK
  • @MaksimKutovoy, preferably not programmatically. But you can programmatically. - Qwertiy
  • Similar question on SO: stackoverflow.com/questions/15384916 - Kromster

2 answers 2

Use the built-in "System Information".
Start - Run - msinfo32
Section "Components - Storage - Disks" Disk information

    I didn’t find how to do it through powershell or wmic , but there is a windows version of the SMART Monitoring Tools package. The syntax is the same as in linux , i.e. For the first hard disk, you must enter smartctl --all /dev/sda . enter image description here . All that remains is to strip the User Capacity string.

    • 2
      How does this wmic not help? but what about the simple request wmic diskdrive get size,status,model - LamerXaKer
    • Not a wmi connoisseur. Searched in Google and Yandex - they did not suggest. - don Rumata
    • @LamerXaKer, yes, it works. - Qwertiy