top of page

Get the block size of a disk via Powershell

To obtain the size of the blocks on a disk, simply use the Get-cimInstance cmdlet.


Get-CimInstance -ClassName Win32_Volume | Select-Object Label, DriveLetter, BlockSize | Format-Table -AutoSize

We can also use the Get-wmiObject cmdlet but it is deprecated. This may be useful on older systems.

Get-WmiObject -Class Win32_Volume | Select-Object Label, DriveLetter, BlockSize | Format-Table -AutoSize

And here is an example of result:


Label    DriveLetter BlockSize
-----    ----------- ---------
Windows  C:               4096
Recovery                  4096
BOOT                      4096



51 views
bottom of page