Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to stop sharing the D drive?

Posted on 2008-10-09
7
Medium Priority
?
1,568 Views
Last Modified: 2012-05-05
If I select the D drive properties and want to stop sharing the drive but...
a message appears as if I would have clicked on the C drive.

"This share was created for administrator purposes only. The share will reappear when the Server service is stopped and restarted or the computer is rebooted."

But I don't want to share the D drive. That isn't a system drive.
How can I stop sharing the D drive for good?
0
Comment
Question by:didier20
[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
7 Comments
 
LVL 70

Expert Comment

by:KCTS
ID: 22677409
By default ALL hard drives are shared to administrators with the C$, D$ etc names. If you want to disable this see http://www.petri.co.il/disable_administrative_shares.htm
0
 

Author Comment

by:didier20
ID: 22678025
I created the registry key discribed in the link and it stopped the sharing from C and D drive.
I think there's no possibility to stop share the D drive only.
0
 
LVL 23

Expert Comment

by:Danny Child
ID: 22678612
What are you trying to achieve here? - there may be a different way to do it...  

Even though D$ is shared to Admins as KCTS says, you may be able to add a 2nd level of more explicit permissions to exclude some connections.  
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 70

Expert Comment

by:KCTS
ID: 22678643
Why are you trying to stop admin shares - only admins can use them - so as long as your users are not admins there is no issue (if your users are admins - then you have bigger issues than this to deal with)
0
 

Author Comment

by:didier20
ID: 22685487
We're a big company and here are 5 administrators who'd map my D drive and browse among my files.

On the D drive I have my personal files, not all but many, and I don't want my colleagues to open them.
0
 
LVL 70

Accepted Solution

by:
KCTS earned 400 total points
ID: 22685517
If they are admins then they can get around this  - do there is little point in what you are attempting. If you want to prevent access to your files create an encrypted folder and store you files in that (don't forget to export the encryption key for safety - its best to keep a copy of the key to recover your encrypted documents in an emergency).

If you encrypt files then only yourself, anyone else you decide to add, and the Data Recovery Agent, if its a domain, can access your files even if they have the necessary NTFS and share permissions
0
 
LVL 1

Expert Comment

by:hackpin
ID: 25257249
Here's a quick solution ... I hope it works


FOR Servers
----------------------------------------------
For NT 4.0/W2K/Windows Server 2003s, the change is:

Hive: HKEY_LOCAL_MACHINE Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters Name: AutoShareServer Data Type: REG_DWORD Value: 0
Idiot proof note: If you can't find the value in the registry under the exact location (i.e. it does not exist) - please right click in the right pane of the window and create it.

Note: A reboot is necessary for this to take effect.

FOR Workstations

For NT 4.0 Workstation/W2K Pro/XP Pro, the change is:

Hive: HKEY_LOCAL_MACHINE Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters Name: AutoShareWks Data Type: REG_DWORD Value: 0
A double idiot proof note:  If you can't find the value in the registry under the exact location (i.e. it does not exist) - please right click in the right pane of the window and create it.

Note: Again, a reboot is necessary for this to take effect. If you want the administrative shares to be re-created, you can change the value back to 1.

Note: Some applications depend on the presence of these shares. If things stop working you'll know to re-enable the shares.
 Security note: Unfortunately this registry hack does NOT stop the IPC$ share and this is a share that is often used by hackers to enumerate systems before attack since it can yield a wealth of information about your system names, your user names, and more. If your ACL permissions are not correct or you haven't disabled anonymous user access or you haven't disabled the guest account then this port can lead to total system compromise within minutes!

Thanks


0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

604 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