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 :
NET SHARE C$ /delete
NET SHARE D$ /delete
NET SHARE admin$ /delete
Put these commands in a .bat file, create a shortcut to it on the desktop (or elsewhere),
then drag the shortcut to Start > All Programs > Startup
to execute automatically upon login.
Another way to do the same thing is to save the shortcut or batch file in %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\
.
You probably want to add this to the "Task Scheduler" so that it does not depend upon a user login. – palswim – 2015-07-28T17:34:37.193
How can you say that administrative shares are unusable in Windows 7? Maybe in your particular setup, but I do have d$ and c$ on my PC accessible from my laptop. – Kitet – 2014-02-16T22:01:31.107
@Kitet: You are right - my phrasing was much too general. Corrected. – harrymc – 2014-02-17T06:41:18.610