Disable Administrative Shares on NT/XP/2000
To prevent creation of the administrative shares on Microsoft Windows NT/2000/XP do the following.
Create/Modify values for AutoShareServer and AutoShareWks:
- In the registry, locate the following key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters - On the Edit menu, click Add Value.
- Type AutoShareServer, click REG_DWORD, and then click OK.
- Type 0, and then click OK.
- On the Edit menu, click Add Value.
- Type AutoShareWks, click REG_DWORD, and then click OK.
- Type 0, and then click OK.Note: Sometimes the values are already present, especially after use of a policy that affects these entries. In addition, on Windows 2000 you are not required to add the AutoShareWks value.
- Quit the registry, and then restart the computer.
To re-enable those default shares change the value of AutoShareServer and AutoShareWks to 1.
This process can easily be done through a policy. The path for the system policy is System Policy Editor\Windows NT Network\Sharing\Create Hidden Drive Shares.
For more information refer to th following Microsoft KB articles :

