I have removed the administrative shares, but the shares are re-enabled after rebooting. I have also tried the editing the registry as described in this Microsoft forum post, but it's also re-enabled after a reboot. Is there anyway to disable the shares so that they remain disabled after a rebooting?
In Windows 7 administrative shares are less harmful than in previous versions of Windows, because they are hidden over the network and can in addition only be accessed remotely by network administrators. Microsoft specifically warns that disabling them may cause some programs to malfunction (but doesn't say which ones).
If you wish to disable them, the only way is to create a startup script, because these shares are always recreated during the boot.
An example script is :
Put these commands in a .bat file, create a shortcut to it on the desktop (or elsewhere),
then drag the shortcut to
Another way to do the same thing is to save the shortcut or batch file in
Please read this first http://support.microsoft.com/kb/842715/en-us - here you can find an potential issue that could happened while administrative shares are off. Some Windows services depend on it.
If you are sure what you are doing just google for answer.
You can remove the administrative shares on a Windows box and prevent them from being created automatically by editing the following registry key and setting its value to 0:
To apply this change, you must stop and restart the server service, which you can easily do by entering the following commands at the command prompt:
However, Microsoft recommends that you don't remove administrative shares because it can break many different things. For a list of problems that can occur, have a look at the Microsoft article: Overview of problems that may occur when administrative shares are missing.