Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to remove the default share C$ or D$ resource

Posted on 2004-08-29
4
Medium Priority
?
224 Views
Last Modified: 2010-04-14
Win2k always proposes a default share C$ or D$ when it startup.
How can I remove it permantly\.
0
Comment
Question by:nguyen_vantuananh
[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 34

Accepted Solution

by:
Dave_Dietz earned 150 total points
ID: 11928261
To delete the hidden administrative shares for all root partitions and volumes (such as C$) and the system root folder (ADMIN$) and to prevent Windows from re-creating them, add an AutoShareWks DWORD value to the following registry key, and then set its value data to 0:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

(Blatantly stolen from http://support.microsoft.com/default.aspx?scid=kb;en-us;314984...)

Please be sure to view the article to see the warnings about disabling the Administrative Shares.

Dave Dietz
0
 

Expert Comment

by:Synder
ID: 11959436
You can create a batch file and have it run automatically in the background at startup.

In the cmd line type:
net share

To list all shared resources


In a batch file:
net share ipc$ /delete
net share admin$ /delete
net share c$ /delete
...
net share z$ /delete

For each share you want to remove. The share's will return after you reboot unless you put this batch file in your startup diectory
0
 
LVL 34

Expert Comment

by:Dave_Dietz
ID: 12326095
The answer I provided is the method endorsed and supported by the product's developer.

Dave Dietz
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

705 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