Page 1 of 1

Disable the auto shares in windows ( C$ and such )

PostPosted: Wed May 03, 2006 2:38 pm
by goat
Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.



Automatic Hidden Shares (Windows NT/2000/XP) Popular
When networking has been installed on a Windows machine, it will automatically create hidden shares to the local disk drives. It is possible to disable the sharing at run-time, but this tweak will stop the automatic sharing altogether.

Open your registry and find the key below.
Create a new DWORD value of either 'AutoShareWks' for NT Workstation or 'AutoShareServer' for NT server. Then set the value to equal '0' to disable automatic sharing. If the values already exist then modify them to change the value.

Restart Windows and the automatic shares should not be created.

Note: The shares are normally accessed via \\server\c$ and \\server\d$ depending on the drive letter.

Registry Settings
System Key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\
Parameters]
Value Name: AutoShareServer, AutoShareWks
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = disable shares, 1 = enable)