Disable administrative shares in XP Pro

Posted on 2006-03-27
Last Modified: 2012-05-05
How do I disable the $C share in XP PRo. I have tried many things, but it keeps reestablishing on boot.

Any tips?

Question by:ainselyb
    LVL 11

    Expert Comment

    by:Steve Agnew
    If you have the firewall turned on, does it really matter ?
    LVL 11

    Expert Comment

    by:Steve Agnew
    But found this if you REALLY want to:

    The system automatically creates hidden "administrative shares" for its logical drives C:, D:, and so forth which it names C$, D$ and so forth. It also creates the admin$ hidden share for to the \winnt folder. These shares are designed for remote access support by domain administrators. By default, if you delete these admin shares, they will be recreated when you reboot. To disable permanently so they will not be recreated on the next reboot, use the following Windows NT / Windows 2000 / Windows XP registry hack:
    Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters
    Name: AutoShareServer for servers
    Name: AutoShareWks for workstations
    Type: REG_DWORD
    Value: 0

    For background: Q156365. For details on disabling in Windows XP, see Q314984. In Windows 2000 and Windows XP, you disable the shares via

    Control Panel
    Systems Tools panel
    Shared Folders
    Double-click the Shared Folders branch to expand it
    Click Shares
    In the Shared Folder column, right-click the share you want to disable
    Click Stop sharing
    Cick OK.
    NOTE: If you disable an administrative share that you have created, it will not be automatically enabled after you restart your computer, and you will need to recreate the share.
    Perhaps the best approach to protect hard drive resources on workstations is to disable the server service if you can. There are a few workstation applications that need server service running, in particular, some SNA emulation packages.

    LVL 11

    Expert Comment

    by:Steve Agnew
    Oh, I should give credit since I didn't type that out.  Found here:  But this way if they discontinue the information it will still be here.

    LVL 12

    Expert Comment

    To disable the admin share do this steps exactly
    Using Regedit, find the HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters registry key.
    Find the entry that is named AutoShareServer.
    Change the data value of this registry key to 0.
    LVL 10

    Expert Comment

    by:Walter Padrón
    By default, if you delete the C$, D$, etc.. Administrative shares, they will be recreated when you reboot. To disable this feature, edit:


    Double click on AutoShareServer and set it to 0 to disable it for a server.
    Double click on AutoShareWks and set it to 0 to disable it for a workstation.
    If the entries are not present, Add Value of type REG_DWORD. The Range is 0 (disable) or 1 (enable - the default).
    LVL 2

    Accepted Solution

    Have a look at this MSKB article:;en-us;314984#EIACAAA

    Quote from the article:

    "Hidden administrative shares that are created by the computer (such as ADMIN$ and C$) can be deleted, but the computer re-creates them after you stop and restart the Server service or restart your computer. Hidden shares that are created by users can be deleted, and they are not re-created after you restart your computer. Microsoft Windows XP Home Edition does not create hidden administrative shares."

    Looks like the OS working as designed, but not as desired.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
    Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 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

    14 Experts available now in Live!

    Get 1:1 Help Now