Solved

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

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

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…
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now