W2KSG: Logical disks

Physical disks support partitions and logical disks.  To discover the logical disks on a machine we would use

Listing 10.3

Get-WmiObject -Class Win32_LogicalDisk | Select Compressed,Description, DeviceID, DriveType, FileSystem, FreeSpace, MediaType, Name, Size, SupportsFileBasedCompression, SystemName, VolumeName, VolumeSerialNumber

Drive type 2=removable, 3=local, 4=network drive, 5 = CD

Media types 0=unkown, 11=removalble, 12=fixed hard disk


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>