Monthly Archive


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

Leave a Reply