Link to home
Start Free TrialLog in
Avatar of adminsly
adminsly

asked on

how to remove default share on my D drive

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.

thanks

sly
Avatar of binary_1001010
binary_1001010
Flag of Singapore image

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.
ASKER CERTIFIED SOLUTION
Avatar of tymes
tymes
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pete Long
Disable Windows hidden shares ($)

Start >Run Type "regedit" {enter}

Navigate to

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters

Modify or create new REG_DWORD Entries shown below


AutoShareServer
AutoShareWks

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
Avatar of adminsly
adminsly

ASKER

thanks  both,  can you just tell me which program need these shares ?
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.