The following guide will tell you howto configure a starup bat to disable shared drives which are shared as default by windows 7
1.)Open up notepad and type the following ( please note this disables shares for all my HDD's in my PC )
@ECHO OFF
NET SHARE C$ /D
NET SHARE E$ /D
NET SHARE F$ /D
2.) Save this as Sharedisable.bat
3.) Place in the all users startup folder .
<pre class="brush:bash">C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup</pre>
4.) Now reboot the PC , and every time your machine now reboots shares will stay disabled .
Works Perfectly