Network and Internet Add or Remove "Map network drive" and "Disconnect network drive" context menu in Windows 11


  • Staff
Network_drive_banner.png

This tutorial will show you how to add or remove Map network drive and Disconnect network drive context menu for specific or all users in Windows 10 and Windows 11.

You can Map a network drive to access shared files on it from File Explorer in Windows without having to look for it or type its network address each time.

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 to know the user name and password credentials for the network drive (share) to connect to it.

You must be signed in as and administrator to add or remove the "Map network drive" and "Disconnect network drive" context menu.



Contents

  • Option One: Add or Remove "Map network drive" and "Disconnect network drive" context menu for All or Specific Users in Local Group Policy Editor
  • Option Two: Add or Remove "Map network drive" and "Disconnect network drive" context menu for All Users using REG file


EXAMPLE: "Map network drive" and "Disconnect network drive" context menu

Command_bar-Map_network_drive_Disconnect_network_drive.png
This_PC-Map_network_drive_Disconnect_network_drive.png

Disconnect_contect_menu.png





Option One

Add or Remove "Map network drive" and "Disconnect network drive" context menu for All or Specific Users in Local Group Policy Editor


The Local Group Policy Editor is only available in the Windows 10/11 Pro, Enterprise, and Education editions.

All editions can use Option Two to configure the same policy.


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 Navigate to the policy location below in the left pane of the Local Group Policy Editor. (see screenshot below)

User Configuration > Administrative Templates > Windows Components > File Explorer

Map_network_drive_Disconnect_network_drive-gpedit-1.png

3 In the right pane of File Explorer in the Local Group Policy Editor, 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 want.

5 Add "Map network drive" and "Disconnect network drive" context menu

This is the default setting.


A) Select (dot) Not Configured. (see screenshot below)​

B) Click/tap on OK, and go to step 7.​

Map_network_drive_Disconnect_network_drive-gpedit-2.png

6 Remove "Map network drive" and "Disconnect network drive" context menu

A) Select (dot) Enabled. (see screenshot below)​

B) Click/tap on OK, and go to step 7.​

Map_network_drive_Disconnect_network_drive-gpedit-3.png

7 You can now close the Local Group Policy Editor if you like.




Option Two

Add or Remove "Map network drive" and "Disconnect network drive" context menu for All Users using REG file


1 Do step 2 (add) or step 3 (remove) below for what you would like to do.

2 Add "Map network drive" and "Disconnect network drive" context menu for All Users

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._for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoNetConnectDisconnect"=-

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoNetConnectDisconnect"=-

3 Remove "Map network drive" and "Disconnect network drive" context menu for All Users

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._for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoNetConnectDisconnect"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoNetConnectDisconnect"=dword:00000001

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 You can now delete the downloaded REG file if you like.


That's it,
Shawn Brink


 

Attachments

  • Network_drive.png
    Network_drive.png
    4.4 KB · Views: 94
  • Add_Map_Network_Drive_and_Disconnect_Network_Drive_context_menu._for_all_users.reg
    920 bytes · Views: 169
  • Remove_Map_Network_Drive_and_Disconnect_Network_Drive_context_menu._for_all_users.reg
    972 bytes · Views: 166
Last edited:

Latest Support Threads

Back
Top Bottom