Navigate the the location below in your registry and make the corresponding change.

Create a new DWORD value of either 'AutoShareWks' for NT Workstation or 'AutoShareServer' for NT server. To disable the shares, set the data to 0.  To re-enable the shares set this value back to 1. 

Restart Windows.

Key:[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters]
Value Name: AutoShareServer, AutoShareWks
Data Type: REG_DWORD
Data:(0=disable, 1=enable)

 

Back to Network and Internet Tweaks