Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to determine if Windows thinks that my SATA hard drives are "removable" or not. The problem is, its on a Hyper-V system, and I don't have access to the Disk Management GUI application. diskpart does not have this information, and I'm not sure where to turn now. How can I determine this via command line tools, or through PowerShell?

share|improve this question
up vote 7 down vote accepted

This is very easy in PowerShell using the .NET Framework, I've just tested it on an external drive :)

PS C:\>$drive = New-Object"F:")
PS C:\>$drive.DriveType

You can also use WMI:

wmic:root\cli>logicaldisk get caption,drivetype
Caption  DriveType
C:       3
D:       5
E:       5
F:       2

Where drive types are:

0 - Unknown 
1 - No Root Directory 
2 - Removable Disk 
3 - Local Disk 
4 - Network Drive 
5 - Compact Disk 
6 - RAM Disk
share|improve this answer
This looks promising. I'll test it out after work. – Jeff Shattock Feb 16 '10 at 13:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.