Devices Check if Drive is Removable in Windows 11


USB_Drive_banner.webp

This tutorial will show you different ways to check if a drive is considered removable in Windows 11.

A removable drive is a type of data storage media (ex: USB) that is easily inserted (connected) and removed from the computer. They can be used as portable devices.



Contents

  • Option One: Check if Drive is Removable in Disk Management
  • Option Two: Check if Drive is Removable in Task Manager
  • Option Three: Check if Drive is Removable in Settings
  • Option Four: Check if Drive is Removable using "Get-Volume" Command
  • Option Five: Check if Drive is Removable using "Get-WmiObject" Command




Option One

Check if Drive is Removable in Disk Management


1 Open Disk Management (diskmgmt.msc).

2 On the left side of the bottom view, Removable will be listed under any Disk # considered a removable drive. (see screenshot below)

Removable_drive_Disk_Management.webp





Option Two

Check if Drive is Removable in Task Manager


1 Open Task Manager (Ctrl+Shift+Esc).

2 Click/tap on Performance on the left side. (see screenshot below)

3 Any Disk # considered removable will have Removable listed as its type.

Removable_drive_Task_Manager.webp





Option Three

Check if Drive is Removable in Settings


1 Open Settings (Win+I).

2 Click/tap on System on the left side, and click/tap on Storage on the right side. (see screenshot below)


Removable_drive_Settings-1.webp

3 Click/tap on Advanced storage settings to expand it open, and click/tap on Disks & volumes. (see screenshot below)


Removable_drive_Settings-2.webp

4 Click/tap on the Properties button for the "disk" you want to check. (see screenshot below)

Removable_drive_Settings-3.webp

5 This drive's Media will show as Removable Device if considered removable. (see screenshot below)

Removable_drive_Settings-4.webp




Option Four

Check if Drive is Removable using "Get-Volume" Command


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below you want to use into Windows Terminal, and press Enter. (see screenshots below)

Windows PowerShell - list all drives
Get-Volume

OR​

Windows PowerShell - list only removable drives
Get-Volume | Where-Object {$_.DriveType -eq 'removable'}

OR​

Command Prompt - list all drives
PowerShell Get-Volume

OR​

Command Prompt - list only removable drives
PowerShell "Get-Volume | Where-Object {$_.DriveType -eq 'removable'}"

3 Look at the DriveType column detail to determine if a drive is Removable.

Removable_drive_Get-Volume.webp


Only_removable_drive_Get-Volume.webp





Option Five

Check if Drive is Removable using "Get-WmiObject" Command


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Copy and paste the appropriate command below into Windows Terminal, and press Enter. (see screenshot below)

Windows PowerShell
Get-WmiObject Win32_LogicalDisk | Select-Object DeviceID, VolumeName, DriveType

OR​

Command Prompt
PowerShell "Get-WmiObject Win32_LogicalDisk | Select-Object DeviceID, VolumeName, DriveType"

3 Look at the DriveType column detail number (ex: "2") to determine if a drive is removable.

DriveType Number​
Description​
0Unknown
1No root directory (drive letter does not exist)
2Removable (ex: USB or SD card)
3Local Disk (internal drive)
4Network Drive (ex: mapped drive)
5CD-ROM (physical CD, DVD, or Blu-ray drive)
6RAM Disk

Removable_drive_Get-WmiObject.webp



That's it,
Shawn Brink


 
Last edited:
Option Five

If you're lazy, and don't like to do math:
Code:
Get-WmiObject Win32_LogicalDisk | Where-Object { $_.DriveType -in 2,5 } | Select-Object DeviceID, VolumeName
Code:
powershell "Get-WmiObject Win32_LogicalDisk | Where-Object { $_.DriveType -in 2,5 } | Select-Object DeviceID, VolumeName"
 

My Computer

System One

  • OS
    Windows 7
Back
Top Bottom