If you want to enable or disable administrative shares, do the very simple step by step below :
This step by step will take the following effect :

  • enable C$, D$, E$ or disable C$, D$, E$ (root of each partition)
  • enable ADMIN$ or disable ADMIN$ (%WINDIR%)
  • enable IPC$ or disable IPC$
  • enable PRINT$ or disable PRINT$
  • enable NETLOGON to use the administrative shares

Requirements : User with administrator rights

Step by step :

  • Start > Run > type “regedit” (without the quotes) > press Enter
  • Browse to HKLM > System > CurrentControlSet > Services > lanmanserver > parameters

To enable administrative shares :

  • Change the value of AutoShareServer to 1
  • Change the value of AutoShareWks to 1

To disable administrative shares :

  • Change the value of AutoShareServer to 0
  • Change the value of AutoShareWks to 0

If you didn’t find the AutoShareServer and AutoShareWks, you need to create one by doing the following :

  • Right click on empty space on the right pane of regedit > New > DWORD value
  • Name it AutoShareServer and put in the value you want (0 to disable, 1 to enable)
  • Do the same for AutoShareWks

Reboot your computer and you’re done.

4 Replies to “how to enable | disable administrative shares”

  1. I don’t know what enabling ‘AutoShareServer’ and ‘AutoShareWks’ does but that is not the solutions I have ever seen anywhere else and would have great reservations about what other byproducts AutoShare might enable.

    The standard solution that you will read 99.9% of the time is:
    1.Click the Windows Start icon and search for “regedit”. Right-click and select “run as administrator”.
    regedit admin
    2.Expand the tree to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft\ Windows \ CurrentVersion \ policies \ system.
    3.Create a new key (Right click -> New -> choose “DWORD Value (32bit)”).
    4.Name the key “LocalAccountTokenFilterPolicy” and give it the value of “1”. Click OK.regedit policy administrativ shares windows 10
    5.Reboot the server to enable the setting to take effect.
    6.Now when you try to access the administrative shares on the remote computer, it should work.

    Know the solutions I reference works 100% of the time I’d leave AutoShare settings alone. My concern is that the AutoShare keys might be opening up your files to unintended users.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.