How to stop sharing $C: and $WINNT permanently

B

Ben

Hi All,

My Win2000 PC connect to P2P local Network. By default Windows share $C: and
$WINNT for administration access(?). I have to stop the shares manually each
time I restart my PC.

Anyway to stop the shares permanently?

Do I have to stop a certain service? What is that service?

Thank you,

Ben
 
G

Guest

Create a batch file with the following and place it in the
startup folder on the start menue to have it run on
startup.
--------
@ECHO OFF

NET SHARE C$ /D
NET SHARE WINNT$ /D
NET SHARE ADMIN$ /D
 
V

Venkat Srinivasan.R

This posting is provided "AS IS" with no warranties, and confers no rights

Hi ,

I found this KB article that talks about ur requirement , however it
is not advisable to do so
as it edits registry !!

Method : Deleting Default Administrative Shares for Current and
Future Sessions

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314984&sd=tech

The same method is below , for full details , see the link above :

WARNING:
If you use Registry Editor incorrectly, you may cause
serious problems that may require you to reinstall your
operating system. Microsoft cannot guarantee that you can
solve problems that result from using Registry Editor
incorrectly. Use Registry Editor at your own risk.

To delete the hidden administrative shares for all root
partitions and volumes (such as C$) and the system root
folder (ADMIN$) and prevent Windows from re-creating them,
add an AutoShareWks DWORD value to the
following registry key and set its value data to 0:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
Regards,
Venkat.
 
B

Ben

Thank you, it works

Just a litle bit concern: By the time Window does "startup", the shares
already established. Virus on P2P network may already access my PC.

Ben
 
B

Ben

Thank you,

I love this method. Haven't restart my PC yet to test but I think it works

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top