Solved

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

Posted on 2004-08-29
4
217 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 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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrate DFS role 3 866
Images sometimes not printed 6 491
Running Baan iV on VMware 3 213
reboot server with scheduled time and week base 4 92
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…
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Suggested Courses

759 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