W2KSG: Disk Partitions

After we have found the physical drives we need to think about the partitions on those drives

Script Center Home > Microsoft Windows 2000 Scripting Guide > Scripting Solutions for System Administration > Disks and File Systems > Managing and Monitoring Disk Drives  Managing Disk Partitions

Listing 10.2

Get-WmiObject -Class Win32_DiskPartition | Select *

will show the full set of information available.  The more commonly needed data can be found with

Get-WmiObject -Class Win32_DiskPartition | Select BlockSize, Bootable, BootPartition, Description, DeviceID, DiskIndex, Index, Name, NumberofBlocks, PrimaryPartition, StartingOffset, Type


Share this post :


Technorati Tags: ,

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>