电话是指什么生肖:急!急!在注册表中如何禁用文件共享,就是在文件夹上点鼠标右键的共享隐藏,谢谢!

来源:百度文库 编辑:高考问答 时间:2024/05/08 03:36:19

如果用户想要一直关闭这些共享,可以在注册表中更改相关设置。
要删除用于所有根分区和卷(如 C$)以及系统根文件夹 (ADMIN$) 的隐藏系统管理共享,并防止 Windows 重新创建它们,可以到下面的注册表项中添加相应的项目。
对于非Server操作系统(如Windows 2000 Professionl、Windows XP):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
"AutoShareWks"=dword:00000000
也可制作注册表导入文件(REG)直接导入注册表:

Code: [Copy to clipboard]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
"AutoShareWks"=dword:00000000

对于服务器操作系统:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
"AutoShareServer"=dword:00000000
也可制作注册表导入文件(REG)直接导入注册表:

Code: [Copy to clipboard]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
"AutoShareServer"=dword:00000000

提醒:在禁用默认系统管理共享后请测试您的程序和服务的功能。有些 Windows 服务依赖于这些共享的存在。另外,有些第三方程序可能要求某些系统管理共享存在。例如,一些备份程序可能要求使用这些共享。

关闭IPC$的注册表导入文件内容:

Code: [Copy to clipboard]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"restrictanonymous"=dword:00000001