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

About these ads
This entry was posted in PowerShell and WMI. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s