how to remove  default share on my D drive

Posted on 2004-11-18
Last Modified: 2010-08-05
hello, i set up a windows server 2003,  i have a  C and D drive , how can i remove de default share from my d drive ?
i do remove it and then recreate a share that i can set the way i want but at reboot the default share come back and give right over or in addition to the one i set already.


Question by:adminsly
    LVL 9

    Expert Comment

    The share was created for administrative purposes only.  The share will reappear when the server service is  stopped and restarted or the computer is rebooted.
    LVL 7

    Accepted Solution

    LVL 57

    Expert Comment

    by:Pete Long
    Disable Windows hidden shares ($)

    Start >Run Type "regedit" {enter}

    Navigate to


    Modify or create new REG_DWORD Entries shown below


    Set the values as follows

    0 = disable shares
    1 = enable

    WARNING, some programs and services use the hidden share feature I STRONGLY advise
    you carry this out either in a test environment OR on your least used server for a trial period

    Author Comment

    thanks  both,  can you just tell me which program need these shares ?
    LVL 7

    Expert Comment

    Remote managment usually uses admin$ and the registry.  You might want to do some inventory in some custom scripting, but if you leave c$ and just want to get rid of d$ as you said there shouldn't be anything that is affected.  But you can progbably also get rid of c$ and never notice.  For me when there is a vulnerability or some update or I want to check on some program or file version I'll quickly write a script to check all the computers on a domain for whatever file via c$ so I do find it useful because of the way I do things.  I check file dates or actuall dll versions for 40 computers in the time it takes to write 10 lines of code.  

    Actually, I haven't done that in a while, I usually already know things from information I gather in logon scripts and since XP SP2 and it's firewall I don't think I can do that anymore... no, wait, I think there is a group policy firewall exception so a script will still work from a machine on a particular IP.  I suppose in the future the rule of thumb will be that default shares are not accessible.


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
    On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    746 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

    15 Experts available now in Live!

    Get 1:1 Help Now