Get Block Size of a Disk via Powershell

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:

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.