Preventing Windows from Automatically Creating Administrative Shares

Find out how to remove administrative shares from your Windows servers and prevent them from being automatically created.

Jan De Clercq

June 25, 2008

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Q: How can I ensure that Windows doesn't automatically create administrative shares, such as C$, D$, and Admin$, on my Windows servers?

 

A: To remove administrative shares and prevent them from being automatically created, you must make the following registry change on your Windows servers: In the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerParameters registry container, create a new REG_DWORD entry called AutoShareServer and set its value to 0. Note that this setting doesn't apply to the IPC$, NETLOGON, and SYSVOL shares or the shares that you create manually, so those shares will still be available after you've created and enabled the AutoShareServer setting.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like