Microsoft KB Archive/816524

= How to remove administrative shares in Windows Server 2003 =

Article ID: 816524

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition

-



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



IN THIS TASK

 * SUMMARY
 * Overview
 * To remove administrative shares by editing the registry
 * REFERENCES



SUMMARY
This step-by-step article describes how to remove default administrative shares, and prevent them from being automatically created in Windows Server 2003.

back to the top

Overview
By default, Windows automatically creates special hidden administrative shares that administrators, programs, and services can use to manage the computer environment or network. These special shared resources are not visible in Windows Explorer or in My Computer, but you can use the Shared Folders tool in Computer Management to view them. Depending on the configuration of your computer, you may see some or all the following special shared resources listed in the Shares folder in Shared Folders:
 *  $: Root partitions and volumes are shared as the drive letter name appended with the $ character. For example, drive letters C and D are shared as C$ and D$.
 * ADMIN$: A resource that is used during remote administration of a computer.
 * IPC$: A resource that shares the named pipes that you must have for communication between programs. Note that this resource cannot be deleted.
 * NETLOGON: A resource that is used on domain controllers.
 * SYSVOL: A resources that is used on domain controllers.
 * PRINT$: A resource that is used during the remote administration of printers.
 * FAX$: A shared folder on a server that is used by fax clients during fax transmission.

Note NETLOGON and SYSVOL are not hidden shares but are instead special administrative shares.

Generally, Microsoft recommends that you do not modify these special shared resources. However, if you want to remove the special shared resources and prevent them from being created automatically, you can do this by editing the registry.

back to the top

To remove administrative shares by editing the registry
To remove administrative shares and prevent them from being automatically created in Windows:

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.  Click Start, and then click Run. In the Open box, type regedit, and then click OK. Locate, and then click the following registry key:

Note The registry key AutoShareServer must be set as type REG_DWORD. When this value is set to 0 (zero), Windows does not automatically create administrative shares. Note that this does not apply to the IPC$ share or shares that you create manually. On the Edit menu, click Modify. In the Value data box, type 0, and then click OK. Quit Registry Editor. Stop and then start the Server service. To do so:  Click Start, and then click Run.</li> In the Open box, type cmd, and then click OK.</li> At the command prompt, type the following lines. Press ENTER after each line:

net stop server

net start server

</li> Type exit to quit Command Prompt.</li></ol> </li></ol>

back to the top

<div class="references_section">