How to hide drives in Windows 7/8/10

How to hide drives in Windows 7/8/10 using Command prompt.

See below things to hide the local drives using Command prompt

  1. Use the Windows key + R keyboard shortcut to open the Run

  1. Type diskpart in run commandand click OK to open the CMD

After that, below window will be opened.

  1. Now, you must follow these 3 steps: –
  • Step: – 1. Type List volume and the press ENTER (see red arrow in the command prompt.

Now, I would like to hide Local disk ‘’E’’ (See below)

  • Step: – 2. Type Select Volume 4 and then press ENTER. I’m selecting volume 2 as I want to hide this volume, you can select which drive you want to hide)

 

 Step: – 3. Type Remove letter E and then press ENTER. I’m selecting letter E as I want to hide this Letter, you can select letter that drive which you want to hide)

Now, drive has been hide as you can see above message ”Diskpart successfully removed”  in screenshot.

Also, you can see there is no Local Drive ‘’E’’ in below screenshot.

 

How to unhide a hidden drive: –

Just use ‘’Assign letter’’ in the end instead of ‘’Remove letter’’ to unhide a hidden drive.

I hope above article will be helpful for you.

If you need any information, please do comment.

Leave a Reply

Your email address will not be published. Required fields are marked *