Devices Turn On or Off Hide Empty Drives in Windows 11


  • Staff
Drive_banner.png

This tutorial will show you how to turn on or off Hide empty drives for your account in Windows 10 and Windows 11.

An empty drive is a drive with no media. For example, a connected media card reader without a SD card inserted.

File Explorer will hide empty drives by default.

If you turn on Show all folders for the navigation pane in File Explorer, empty drives will always show in the navigation pane even if you turned on Hide empty drives.

If you turn on Show hidden files, folders, and drives in Folder Options, empty drives will always show as faded (dimmed) in File Explorer > This PC even if you turned on Hide empty drives.


Contents

  • Option One: Turn On or Off Hide Empty Drives in Settings
  • Option Two: Turn On or Off Hide Empty Drives in Folder Options
  • Option Three: Turn On or Off Hide Empty Drives using BAT file


EXAMPLE: Empty drives in File Explorer > This PC

hide_empty_drives.png
Show_empty_drives.png
No_longer_empty_drive.png

Show_all_folders.png
Show_hidden_items.png





Option One

Turn On or Off Hide Empty Drives in Settings


1 Open Settings (Win+I).

2 Click/tap on Privacy & security on the left side, and click/tap on For developers on the right side. (see screenshot below)

Starting with Windows 11 version 22H2 KB5030310 Build 22621.2361, For developers is now in Settings > System.



For_Developers_Settings-1.png

3 Click/tap on File Explorer to expand it open. (see screenshot below step 4)

4 Turn On or Off (default) Show empty drives for what you want. (see screenshot below)

For_Developers_Settings-2.png

5 You can now close Settings if you like.




Option Two

Turn On or Off Hide Empty Drives in Folder Options


1 Open Folder Options.

2 Click/tap on the View tab. (see screenshot below)

3 Under the Navigation pane section, check (on - default) or uncheck (off) Hide empty drives for what you want.

4 Click/tap on OK.

hide_empty_drives_Folder_Options.png





Option Three

Turn On or Off Hide Empty Drives using BAT file


1 Do step 2 (on) or step 3 (off) below for what you want.

2 Turn On Hide Empty Drives

This is the default setting.

This will also turn off Show all folders and Show hidden files, folders, and drives.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Hide_empty_drives_for_current_user.bat


(Content of BAT file for reference)
Code:
@echo off

REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V Hidden /T REG_DWORD /D 0 /F

REG Add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V NavPaneShowAllFolders /T REG_DWORD /D 0 /F

REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V HideDrivesWithNoMedia /T REG_DWORD /D 1 /F

taskkill /f /im explorer.exe
start explorer.exe

3 Turn Off Hide Empty Drives

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Show_empty_drives_for_current_user.bat


(Content of BAT file for reference)
Code:
@echo off

REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V HideDrivesWithNoMedia /T REG_DWORD /D 0 /F

taskkill /f /im explorer.exe
start explorer.exe

4 Save the .bat file to your desktop.

5 unblock the .bat file.

6 Double click/tap on the .bat file to run it.

7 You will now notice your screen flicker as the explorer process is restarted to apply.

8 When finished, you can delete the downloaded .bat file if you like.


That's it,
Shawn Brink


 

Attachments

  • Drive.png
    Drive.png
    2.7 KB · Views: 87
  • Hide_empty_drives_for_current_user.bat
    582 bytes · Views: 151
  • Show_empty_drives_for_current_user.bat
    349 bytes · Views: 141
Last edited:
Back
Top Bottom