How to disable a drive or folder sharing in Windows 7 at low level?

  1. Delete the corresponding registry key at the path HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares\Security.
  2. net stop LanmanServer && net start LanmanServer

superuser.com/a/846605