Enabling this options hides the file and printer sharing controls, stopping users from disabling or creating new file or printer shares. 

Key:[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Network]
Value Name: NoFileSharingControl
Data Type: REG_DWORD
Data:(0 = disabled, 1 = enabled)

 

Back to Windows Tweaks