Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


March 2002

Remove Administrative Shares on a Win2K System

RSS
Subscribe to Windows IT Pro | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Windows 2000 has administrative shares (i.e., shares that provide remote access directly to any C drive or logical, physical drive on your system) by default. The administrative shares are those shares that you can use \\computername_or_IPaddress\C$ to access. To manually disable the shares, right-click My Computer, select Map Network Drive, select the drive letter (i.e., C, D, or E), and enter

\\<ComputerName>_or_<Ipaddress><DriveLetter>$

Select Do not share this folder. Unfortunately, when you restart the system the shares will automatically recreate. This feature creates a security risk because anyone who knows the machine's IP address can try to use \\IPaddress\C$ , \\IPaddress\D$, or \\IPaddress\E$ to access the shares.

To remove administrative shares without letting Win2K recreate them every time you reboot the system, you need to edit the registry. Start regedit and go to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters subkey. From the Edit menu, select New, DWORD Value to create the new values AutoShareServer and AutoShareWks; set each value's data to 0 (i.e., false). Next, go to each drive, right-click, and select Sharing. Then, select Do not share this folder.

To test the registry entries you added, restart your system and go to your physical or logical drive's Sharing option. Check whether C$, D$, or E$ appears (they shouldn't). To further ensure that the administrative shares are disabled, try to access \\IPaddress\C$, \\IPaddress\D$, or \\IPaddress\E$.

End of Article



Reader Comments
keep in mind i am a complete idiot because this will disable all local sharing and not just the administrative share. If you wish to try this be absolutely sure you do not want to ever use local sharing.

Phuoc Trong Ha March 17, 2003


The comments posted by Phuoc Trong Ha on March 17, 2003 are incorrect.
The above method will *NOT* disable all local sharing. It will disable the Administrative shares only. All existing or future shares are unaffected by theese registry changes.

In windows XP, in order to remove the shares after the changes have been made to the registry, you need to go to "Windows Explorer" -> "Tools", "Folder Options" [View]
and remove the check in "Use simple sharing (Recommended)"

-that makes it possible to remove the shares.
After the shares are removed, you can change the "Use simple sharing (Recommended)" setting back to enabled.

Angel June 30, 2004


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...

10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events Security Summit

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing