Get Cluster size for all disks and volumes on a Windows machine using PowerShell and WMI

Get-WmiObject -Query “SELECT Label, Blocksize, Name FROM Win32_Volume WHERE FileSystem=’NTFS'” -ComputerName ‘.’ | Select-Object Label, Blocksize, Name

See below an example of output:

Label                                                                 Blocksize Name
-----                                                                 --------- ----
                                                                           4096 C:\
Quorum                                                                     4096 Q:\
VM1                                                                       65536 \\?\Volume{e9127c7b-fbbf-11df-95af-d...
VM2                                                                       65536 E:\
VM3                                                                       65536 \\?\Volume{bf98aa98-5514-11e0-95af-d...
VM4                                                                        4096 \\?\Volume{fc6962e9-1f6a-11e1-b78b-d...
VM5                                                                        4096 \\?\Volume{ceae022b-856c-11e1-9f48-9...
VM6                                                                        4096 \\?\Volume{a4836d26-3d0f-11e1-8658-d...
VM7                                                                        4096 \\?\Volume{5d97ad3e-0337-11e1-b78b-d...
Tagged:

Leave a Reply

Your email address will not be published. Required fields are marked *