?
Solved

Hiding local drives using batch files

Posted on 2003-03-22
4
Medium Priority
?
489 Views
Last Modified: 2010-04-11
I want to be able to hide all local fixed drives (usually only C:) using a routine in a batch file.

Im currently running WIN2000 Advanced server as a domain controller but if i can help it i want to keep as much as possible in batch files so i can easily port them to other networks if possible and for some reason finding how to hide a local drives seems to elude me :(

Any help is appreciated
0
Comment
Question by:E1uSiV3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Expert Comment

by:cduke250
ID: 8187206
You want to hide the drives from showing up where?  
0
 
LVL 3

Accepted Solution

by:
cduke250 earned 300 total points
ID: 8187478
Batch information on the web...

http://www.maem.umr.edu/~batch/ - Ted Davis' page
http://www.pressroom.com/~tglbatch/ - Tom Lavedas' page
http://www.calweb.com/~webspace/batch/ - Eric's page
http://www.nc5.infi.net/~wtnewton/batch/ - Terry's page
http://purl.oclc.org/net/dirk/batcoll.all - Dirk's bat techniques
http://bigfoot.com/~batfiles/ - Laurence Soucy's page

If you want to stop a drive or any combination of drives appearing in Explorer/My Computer
Add the Binary Value of 'NoDrives' in the registry at HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Give it a value from a combination of the table below:
A: 01 00 00 00
B: 02 00 00 00
C: 04 00 00 00
D: 08 00 00 00
E: 10 00 00 00
F: 20 00 00 00
G: 40 00 00 00
H: 80 00 00 00
I: 00 01 00 00
J: 00 02 00 00
K: 00 04 00 00
L: 00 08 00 00
M: 00 10 00 00
N: 00 20 00 00
O: 00 40 00 00
P: 00 80 00 00
Q: 00 00 01 00
R: 00 00 02 00
S: 00 00 04 00
T: 00 00 08 00
U: 00 00 10 00
V: 00 00 20 00
W: 00 00 40 00
X: 00 00 80 00
Y: 00 00 00 01
Z: 00 00 00 02
Where (for eg) you want to hide Drives {C,E,J,O,R,U,Y,Z} you would give 'NoDrives' the value 14 42 12 03
Where C+E = 14, J+O = 42, R+U=12 and Y+Z = 03
Please NOTE: The Numbers are to be added in HEXadecimal ie: ABCD = 0F, not 15 All Drives Visible is 00 00 00 00 All Drives Hidden is FF FF FF 03


You can prevent Network Neighborhood from displaying computers in your
local workgroup or domain with a simple Registry change (as always, be
careful when editing the Registry--we can't guarantee the results).
You can still access these computers; they just don't show up in the
Network Neighborhood listing. To make this change, use the NT Registry
Editor to modify the following key:

HKEY_CURRENT_USER\Software\Microsoft\Windows:

For the value NoWorkgroupContents, set the value to 1. Save your
changes and restart your system.


~Hope it helps
0
 
LVL 1

Expert Comment

by:friend002
ID: 8188438
Here is a program with Unbelievable options, one of them is to hide any drive on your computer.
PC Security
the link is :
http://www.tropsoft.com/
good luck
0
 

Author Comment

by:E1uSiV3
ID: 8234669
This was exacly what i was looking for as i can import reg strings using batch files and you inclueded some good liks too :) thx for all yr help
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
With the rising number of cyber attacks in recent years, keeping your personal data safe has become more important than ever. The tips outlined in this article will help you keep your identitfy safe.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question