Get Block Size of a Disk via Powershell

28 Jan, 2021·
AlexIn Tech
AlexIn Tech
· 1 min read

Get Block Size of a Disk via Powershell

To retrieve the block size of 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, though it is deprecated. This can be useful on older systems.

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

Here is an example of the output:

Screenshot PoSh

AlexIn Tech
Authors
SysOps Engineer | IT Teacher
Versatile IT Engineer with a dual specialization in System Engineering and Management, AlexIn Tech teaches IT to CFC apprentice IT specialists at ETML, the Technical School of Lausanne 🇨🇭. Passionate about IT, innovation, and knowledge sharing, he shares his discoveries and learnings here to inspire new generations.