Quick Drive Info

by Jan 27, 2009

Want to quickly get a number of interesting details for any drive? Use the .NET System.IO.DriveInfo class like this:

New-Object System.io.DriveInfo "C:" | Format-List *
$drive = New-Object System.io.DriveInfo "C:"
$drive.DriveFormat
$drive.VolumeLabel