Add or Remove Map Network Drive and Disconnect Network Drive from This PC Context Menu in Windows 10
When you map a network drive, you are creating a shortcut in This PC to a drive (ex: NAS), shared folder, or computer on your network. A mapped network drive has the following characteristics:
- It has a drive letter assigned like any other partition in your system.
- It points to a network shared folder on another PC.
- It points only to resources found on your network.
- You need the username and password credentials to connect to it.
By default, users can right click on This PC (desktop icon or File Explorer navigation pane) and click/tap on the Map Network Drive or Disconnect Network Drive context menu item to perform that action.
This tutorial will show you how to add or remove Map Network Drive and Disconnect Network Drive on the This PC context menu for specific or all users in Windows 10.
You must be signed in as an administrator to add or remove these context menu items.
Contents
- Option One: Add or Remove "Map network drive" and "Disconnect network drive" on This PC Context Menu for All or Specific Users using Local Group Policy Editor
- Option Two: Add or Remove "Map network drive" and "Disconnect network drive" on This PC Context Menu for All Users using a REG file
EXAMPLE: "Map network drive" and "Disconnect network drive" context menu items for This PC
![]()
The Local Group Policy Editor is only available in the Windows 10 Pro, Enterprise, and Education editions.
All editions can use Option Two below.
1 Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.
2 In the left pane of the Local Group Policy Editor, click/tap on to expand User Configuration, Administrative Templates, Windows Components, and File Explorer. (See screenshot below)
3 In the right pane of File Explorer, double click/tap on the Remove "Map Network Drive" and "Disconnect Network Drive" policy to edit it. (see screenshot above)
4 Do step 5 (add) or step 6 (remove) below for what you would like to do.
A) Select (dot) either Not Configured or Disabled, click/tap on OK, and go to step 7 below. (see screenshot below)
Not Configured is the default setting.
7 When finished, you can close the Local Group Policy Editor if you like.
The downloadable .reg files below will add and modify the DWORD value in the registry keys below.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoNetConnectDisconnect DWORD
(delete) = Add
1 = Remove
1 Do step 2 (add) or step 3 (remove) below for what you would like to do.
This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 4 below.
Add_Map_Network_Drive_and_Disconnect_Network_Drive_context_menu.reg
Download
A) Click/tap on the Download button below to download the file below, and go to step 4 below.
Remove_Map_Network_Drive_and_Disconnect_Network_Drive_context_menu.reg
Download
4 Save the .reg file to your desktop.
5 Double click/tap on the downloaded .reg file to merge it.
6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.
7 Restart the explorer process or sign out and sign in to apply.
8 You can now delete the downloaded .reg file if you like.
That's it,
Shawn
Related Tutorials
- How to Add or Remove Manage on This PC Context Menu in Windows 10
- How to Map Network Drive or Disconnect Network Drive in Windows 10
- Enable Mapped Drives to be Available in Elevated Command Prompt and PowerShell in Windows
- How to Enable or Disable Scan Mapped Network Drives with Microsoft Defender in Windows 10