This guide demos 5 methods to Map Network Drive in Windows 10.
Options to Map Network Drive in Windows 10
You can Map Network Drive in Windows 10 with one of these methods covered in this guide:
- From File Explorer
- Using an Existing Network Share Shortcut
- From Command Prompt
- With Logon Script
- With Group Policy
Here are the details for each method
1Map Network Drive in Windows 10 from File Explorer
Here are the steps to map a network drive using this method:
- Right-click start menu. Then select File Explorer.
- When File Explorer opens, click This PC.
- Then click Computer tab.
- Finally, click Map network drive drop-down and select Map network drive.
- When the tool opens, at the Drive drop-down, select a drive letter to assign the network drive. If you know the full path to a network share, enter it in the Folder field using the format \\ServerName\ShareName. Then click Finish.
- Alternatively, if you do not know the full path to the share you want to map, enter the server name in the format \\ServerName. Then click Browse. The network computer will then display all the shares. Click on the share you wish to map and click OK.
- Finally, click Finish. The mapped drive will open automatically (see the second image below).
2Map Network Drive in Windows 10 from Existing Shortcut
Another method is to map a network share from a Shortcut. If you have an existing network share shortcut, simply right-click it and map the share to a drive.
But if you do not already have a shortcut to the share, here are the steps to create the shortcut. Then map the share to a drive.
- Right-click anywhere on your desktop and point to New. Then select Shortcut.
- At the first page of the Create Shortcut wizard, enter the path to the network share. Use the format \\ServerName\ShareName. Then click Next.
- Then on the Type a name for the shortcut field, enter a name for the share or accept the default name. When you finish, click Finish. The shortcut to the network share will be created on your desktop (see the second image below).
- To map the share to a drive on your computer, right-click the shortcut. Then select Map network drive.
- Then select a drive letter from the Drive drop-down and click Finish.
3Map Network Drive in Windows 10 from Command Prompt
This is one quick way to map a network share to a drive.
Here are the steps to use this method:
- Type cmd on the search bar. Then open Command Prompt.
- At command prompt type this command. Then press enter.
net use <drive letter> <\\ServerName\ShareName> /persistent:yes/no
<drive letter> with the drive letter you want to map the drive to. For example K:
<\\ServerName\ShareName> with the path to the share you want to map.
Finally, for the /persistent switch specify Yes or No. Yes will reconnect the drive at eaxh logon. No will not.
Here is an actual command for this demo:
net use K: \\hypervhost\MountedImages /persistent:yes
The result of the command:
Here is the mapped drive in my This PC.
The remaining methods discussed in this guide are for Sys Admins.
4Map Network Drive in Windows 10 with Logon Script
System Administrators can automatically map a network drive or drives using logon script.
There are 3 steps to complete this task:
- Create a Batch file with the commands to map the drive (s)
- Copy the batch file to \\DomainName.<extension>\NETLOGON
- Assign Users the logon script in Active Directory Users and Computers OR
- Assign the batch file to users using Group Policy
Create a Batch file with the Commands to Map the Drive (s)
- Open a notepad and enter the commands similar to the commands used in the last section.
- Here is an example
- Save the file with .bat extension: File -> Save As…Give the file a name then include .bat extension. Have the names in quote. See the example below. Finally, click Save. The file will look like the file in the second image below.
Copy the Batch file to \\DomainName.<extension>\NETLOGON
The final step in this method is to copy the batch file you just created to the NETLOGON share in your domain.
Here is how:
- Open Run command (Windows logo + R keys)
- At the Run command enter a path similar to this below. Then press enter or OK.
Change itechguides.local to the FQDM for your domain.
- Finally, copy the batch file you created earlier to the NETLOGON share.
Assign Users the Logon Script in Active Directory Users and Computers
After creating the logon script and copying it to the NETLOGON share, the last step to map network drive in Windows 10 is to assign the script to a user.
Here are the steps:
- Logon to your a Domain Controller and open Active Directory Users and Computers.
- Navigate to the AD OU or container where your users are located. It is usually Users container except you moved the users to another OU.
- Double-click the user you wish to assign the logon script. On the Profile tab, enter the name of the batch file in the Logon Script field. When you finish, click OK.
- When next the user logs on to Active Directory, the script will run and the drive will be mapped automatically.
Assign the batch file to users using Group Policy
This is an alternative way to automatically assign the batch file to users.
Here are the steps:
- Copy the batch file you created earlier.
- Open the GPO you wish to use. This GPO must be assigned to the AD container with the users you wish to assign the batch file automatically.
- Right-click the GPO and click Edit.
- When the navigate to User Configuration > Policies -> Windows Settings > Scripts.
- Double-click Logon. Then click Show Files….
- When the path opens, paste the batch file. Then close the path.
- When you return to Logon Properties, click Add.
- When Add a Script window opens, click Browse.
- Select the script you copied earlier. Then click Open.
- Back on the Add a Script window, click OK.
- Finally, on the Logon Properties click OK.
When next a user logs on to Active Directory, the script will run and the drive will be mapped.
5Map Network Drive in Windows 10 with Group Policy
For the steps to use this method click Map Network Drive in Windows 10 with Group Policy.
The first 3 steps in this guide should be used by end users while the last 2 are for Windows Sys Admins.
I hope you found the guide helpful. If you have a question or will like to share a feedback use the “Leave a Reply” form found at the end of this page.
For more Windows guides visit our Windows How To page.