Jump to content

Can I Hide Drives From Explorer/my Computer


996

Recommended Posts

Is this possible?

I want lets say drive E: to be hidden (invisible) from Explorer and My Computer yet I do want to access that drive via the command line or from a batch file?

How could this be done?

Link to comment
Share on other sites


Hi

Windows Registry Editor Version 5.00

; to hide drive for current user

;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

;to hide drive for all user

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

"NoDrives"=dword:00000000

the dword value will be in HEX i.e.

               

DRIVE  A=1        (2^0)

DRIVE  B=2        (2^ 1)   

DRIVE  C=4        (2^ 2)

DRIVE  D=8        (2^ 3)

DRIVE  E=10       (2^ 4)

DRIVE  F=20       (2^ 5)

DRIVE  G=40      (2^ 6)

DRIVE  H=80      (2^ 7)

i.e. if you want to hide drive E the dword value will be (dword:00000010)

and if you want to hide drive G & drive C dword value will be (4+40) that mean (dword:00000044) and so on

to be more clear if I want to hide all drive A,B,C,D,E,F,G,H the registry will be like this

Windows Registry Editor Version 5.00

;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

"NoDrives"=dword:000000ff

* to show all drive dword:00000000

edit : restart explorer or computer or log off to let change take effect

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...