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: Powershell,WMI