Administrative Share - How To Disable

How To Disable

Microsoft does not detail any method to disable administrative shares. The command:

NET SHARE C$ /delete

can be executed in order to disable the root share in a networked computer. The problem is that after a reboot, the share will be automatically recreated.

A common workaround is to create a batch file with commands to disable all administrative shares (they can be viewed by running the "NET SHARE" command), and then scheduling the script to run at every system startup by using the Windows Task Scheduler.

Usually, the following commands, under a batch file, can successfully disable shares on a Windows XP or Windows Vista system:

NET SHARE C$ /delete
NET SHARE D$ /delete
NET SHARE admin$ /delete

Read more about this topic:  Administrative Share