Script Download:Check4kAligned.zip
http://gallery.technet.microsoft.com/scriptcenter/Check-if-disk-partitions-bb5b3eca

This script can be used to check whether user’s disk partitions contain the correct 4KB alignment. Over the next few years, data storage will transition from physical format of hard disk drives that are in 512-byte sectors to 4,096-byte sectors (also known as 4K or 4KB sectors) hard disk drives. This change includes increases in storage density and reliability.  Many customers have to know whether their disk partitions have the non-4kb alignment issues which can cause incompatibility issues with existing software (including operating systems and applications).

We can use Test-OSC4kAligned function to check whether user’s disk partitions contain the correct 4kb alignment.

image image
image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery