If you have never used the “Map Network Drive” dialog box, do you ever wonder how to get rid of it? Personally I only map drives from the command line so I never use it either… so I’m thankful there’s a registry hack that can remove the menu items.
如果您从未使用过“ Map Network Drive”对话框,您是否想知道如何摆脱它? 我个人仅从命令行映射驱动器,因此我也从不使用它。因此,我很庆幸注册表中存在可以删除菜单项的黑客。
If you are unfamiliar with what I’m talking about, just right-click on the Computer icon and you’ll see:
如果您不熟悉我在说什么,只需右键单击“计算机”图标,您将看到:
![image](https://i-blog.csdnimg.cn/blog_migrate/fd7b60daaf86f1189a3a2c0eb11c3386.png)
Here’s that same context menu without the items.
这是没有项目的相同上下文菜单。
![image](https://i-blog.csdnimg.cn/blog_migrate/7bee35b6954f942469dbd4ed033c0aa3.png)
Of course, it would probably be simplest to just uninstall, disable or remove file sharing altogether, but if you don’t want to do that and still want the menu items gone, this registry hack is for you.
当然,完全卸载,禁用或删除文件共享可能是最简单的,但是如果您不想这样做但仍然希望菜单项消失,则此注册表技巧非常适合您。
Note: This will completely disable all connect/disconnect menu items, including on currently mapped drives and the Tools menu.
注意:这将完全禁用所有连接/断开菜单项,包括当前映射的驱动器和“工具”菜单上的菜单项。
Manual Registry Hack
手动注册表破解
Open regedit.exe through the start menu search or run box, and then navigate down to the following key, creating if it does not exist.
通过开始菜单搜索或运行框打开regedit.exe,然后向下导航至以下键,如果该键不存在,则进行创建。
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer
![image](https://i-blog.csdnimg.cn/blog_migrate/8889c4b1f74011cfe2f058cc07e1e2c6.png)
On the right-hand pane create a new 32-bit DWORD value with the following values:
在右侧窗格上,使用以下值创建一个新的32位DWORD值:
- Name: NoNetConnectDisconnect 名称:NoNetConnectDisconnect
- Value: 1 价值:1
The change should be immediate, you can right-click on Computer to see the difference. To remove, just delete the key or set the value to 0.
更改应该是立即的,您可以右键单击“计算机”以查看差异。 要删除,只需删除密钥或将值设置为0。
Download Registry Hack
下载注册表黑客
Just download, extract, and double-click on RemoveMapNetworkDrive.reg to enter the information into the registry. There’s also an uninstall script included to reverse the effect.
只需下载,解压缩并双击RemoveMapNetworkDrive.reg,即可将信息输入注册表。 还包括一个卸载脚本来恢复效果。
Download RemoveMapNetworkDrive Registry Hack