Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you "Force" the removal of a Shared folder throuh MMC? 1

Status
Not open for further replies.

qmacg

Technical User
Aug 20, 2001
47
US
I have an older Windows 2000 Laptop from school. I am logged into my PC with Admin Rights(but not logged in as the actual Administrator). For some reason when I go into the Microsoft Management Console for Shared drives it displays my root c:\ and c:\winnt. Everytime I remove these shared items a message appears stating that the shared drives will return on the next boot. Is there a way to Force these shares from being removed?? I tried looking in the Group Policy as well and couldn't find anything. Any help would be appreciated.
 
By default Windows 2000, Windows XP and WinNT automatically setup hidden admin shares (admin$, c$ and d$), this registry key will disable these hidden shares.

System Key: [HKEY_LOCAL_MACHINE\ System\ CurrentControlSet\ Services\ LanmanServer\ Parameters]
Value Name: AutoShareWks
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = disable shares, 1 = enable)

This registry key actually stops the recreation of the shares, therefore it may be necessary to delete the shares through the drive properties also or you can also remove the shares through the Computer Management Console.

1. In Control Panel, double-click Administrative Tools, and then double-click Computer Management.

2. Click to expand Shared Folders, and then click Shares.

3. In the Shared Folder column, right-click the share you want to delete, click Stop sharing, and then click OK.

Note : To remove the admin share for only the current session use the second method (Computer Management console), if you want a permanent removal, add the AutoShareWks registry.




Newbie in search of knowledge
 
Thanks very much vttech. One question though... I also see in the MMC share section IPC$ with a comment of "remote pc". Is there a way to disable this as well or should I leave it alone since it may affect my other shared folders on my computer for my home network.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top