How to Map a Drive and Folder in Windows 11? – Mundo2030

Windows allows you to map a drive on your computer and make it available on the network. A mapped drive available on the network can be accessed remotely from other users on the same network. This setup is very popular in IT support organizations where all uses can access the forms and downloads from common network drive from a server. This article explains how to map a drive in Windows 11 using different methods. If you are using Windows 10, check out our previous article.

Network Discovery in Windows 11

When a mapped drive is available on network, it will appear as a virtual drive on your system and you can view it like any other physical drive. However, you may need a proper authorization and credentials for accessing shared files / folders. To map a network drive in Windows 11, first you need to enable the “Network discovery” feature. This allows other devices on the network to find your mapped drive.

  • Press “Windows + I” keys and open “Settings” app.
  • Go to “Network & Internet” section and select “Advanced network settings” option.
Advanced Network Settings
Advanced Network Settings
  • Under “More settings” section, click on “Advanced sharing settings” option.
Advanced Sharing Setting
Advanced Sharing Setting
  • You will see three options – “Private networks”, “Public networks” and “All networks”. Generally, “Public network” is your current profile and expand it. Turn on “Network discovery” option to enable it.
Turn Network Discovery On
Turn Network Discovery On

Now, follow one of the below methods to map a drive in Windows 11.

1. Use File Explorer

The most common way to map a network drive in Windows 11 is using File Explorer.

  • Right-click on the Start button and select the “File Explorer” option from the menu items. Alternatively, press “Windows + E” keys to open File Explorer.
Open File Explorer
Open File Explorer
  • Select “This PC” from the left side menu. If you do not find “This PC”, check how to enable it.
  • Click the three-dots icon in top toolbar menu and select “Map network drive” option.
Map Network Drive Menu
Map Network Drive Menu
  • Choose the drive letter of your choice from the drop-down menu against the “Drive” option. By default, system will select Z for drive letter to avoid conflicting with your current drives. You can change the drive letter if you want but make sure it is not used by other internal/external drives.
Select Drive Letter for Mapping
Select Drive Letter for Mapping
  • In the “Folder” field, type the network path of the folder you want to connect or click on “Browse” button to search and select the folder path.
Browse and Locate Folder
Browse and Locate Folder
  • If you want to reconnect to your shared folder every time you sign in, then make sure to check the “Reconnect at sign-in” option. And if you want to use a different username and password to access this network drive other than the one linked to your Windows account, you should check the “Connect using different credentials” and then click on the “Finish” button.
Reconnect and Connect with Different Credentials
Reconnect and Connect with Different Credentials
  • As soon as you click the “Finish” button, system will ask for the new credentials you want to use. Type “Username” and “Password” in the corresponding fields. Make sure to check the “Remember my credentials” option to avoid adding the credentials every time you access the drive and click on “OK”.
Type Username and Password
Type Username and Password
  • Your mapped network drive (Z drive in our case) will now appear in “This PC” under “Network locations”.
Drive Mapped in File Explorer
Drive Mapped in File Explorer

1.1. Disconnect Mapped Network Drive

You can easily disconnect the mapped network drive using two different approaches. One way is to right-click on the newly created mapped drive and select the “Disconnect” option. This is an easy option when you want to disconnect a single mapped drive.

Disconnect Menu
Disconnect Menu

When you want to disconnect multiple drives at once, go to “This PC” section. Click the three-dots icon on top menu and select “Disconnect network drive” option from the list.

Disconnect Network Drive
Disconnect Network Drive

This will open “Disconnect Network Drives” dialog. Select the drives that you want to delete and click “OK” button.

Select and Remove Drives
Select and Remove Drives

2. Using Command Prompt

You can also map a network drive from command line either using Command Prompt or with Windows PowerShell. First, let us explain with Command Prompt.

  • Type “cmd” in Windows Search box to find Command Prompt in the results. Right-click on Command Prompt and select “Run as administrator” option.
Open Command Prompt in Admin Mode
Open Command Prompt in Admin Mode
  • Type the following command in the prompt:
net use Y: \ Device-name-or-IPShared-folder
  • Make sure to replace “Y:” with your drive’s letter, “Device name or IP” with the name of your computer or IP address and “Shared folder” is the folder path that you want to share. Once the command is ready, press enter key.
  • You should see a message saying, “The command completed successfully”.
Map Drive from Command Prompt
Map Drive from Command Prompt

2.1. Add Password and Username

You can also add credentials to the above command if you want to add your username and password. The above command will modify to:

net use Y: \ Device-name-or-IPShared-folder password/user :admin /persistent :yes

Now, you have to replace the “password/user” with your password and username. Here the “persistent” option means that the folder will remain mapped until it is disconnected or deleted. Your new mapped drive will appear in the File Explorer (Downloads folder in our example).

New Mapped Folder from Command Prompt
New Mapped Folder from Command Prompt

2.2. Disconnect Mapped Drive from Command Prompt

If you want to disconnect the mapped drive, use the following command:

net use DRIVE_LETTER: /DELETE

Replace the drive letter with the drive you want to disconnect and press enter (Y in the below picture).

Remove Drive from Command Prompt
Remove Drive from Command Prompt

3. Using Windows PowerShell

As mentioned, Windows PowerShell is another command-line utility that you can use to map a network drive in Windows 11.

  • Type “powershell” in Windows Search to find the app. Right-click on it and select “Run as administrator” option.
Open PowerShell in Admin Mode
Open PowerShell in Admin Mode
  • Type the following command in the prompt:
New-PSDrive -Name "drive-letter" -PSProvider "FileSystem" -Root \deviceshared-directory
  • Here replace the “Drive-letter” with your mapping drive’s letter, “device” with your computer name and “Shared directory” with the shared folder path.
  • Make sure the command is correct and press enter key.
Map Drive in PowerShell
Map Drive in PowerShell

3.1. Remove Mapped Drive

If you wish to remove the mapped drive, type this command:

Remove-PSDrive -Name X

Replace the letter “X” with the letter of your mapped drive (for example, L in the below picture).

Remove Drive from PowerShell
Remove Drive from PowerShell

You can check the File Explorer to confirm the mapped network drive is removed from the “Network locations” list. Alternatively, you can also directly check the drives from Windows PowerShell using the following command.

Get-PSDrive -PSProvider "FileSystem"

And you will not find the mapped network drive here.

Final Thoughts

These are the three easy ways to map a drive in Windows 11. Among them, the easiest way to map a network drive is using File Explorer. It is straightforward and you need not to struggle with commands in Command Prompt or Windows PowerShell.

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Subir
error: Content is protected !!