Solved

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

Posted on 2004-08-29
4
212 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
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 50 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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