If you frequently access files on a network-attached storage (NAS) device, a home server, or a shared folder on another computer, constantly navigating to it can be tedious. Mapping a network drive solves this by assigning a drive letter (like Z:) to the network location.
This makes it appear in File Explorer just like a local hard drive, providing quick and reliable access to your shared files from any application.
This tutorial guides you through several methods to map a network drive in both Windows 11 and Windows 10. We cover the straightforward graphical approach using File Explorer, which is perfect for most users.
We also detail advanced command-line methods. You will also learn how to connect to FTP sites and disconnect drives when they are no longer needed.
Before you begin, you will need a few things. First, ensure you are connected to the same local network as the device you want to map. Second, you must know the network path to the shared folder.
This typically looks like \\DEVICENAME\ShareName or an IP address like \\192.168.1.50\Public. Finally, if the folder is password-protected, have the username and password ready.
⚠️ Please note: The process described below is the same in Windows 11 as it is in Windows 10. However, bear in mind that we’ll be using screenshots from Windows 11, so your UI may look a little different. We’ll point out any changes you need to be aware of as they come up.
How to Map a Network Drive Using File Explorer
Difficulty: Beginner; Time to complete: 3-5 minutes
The easiest and most common way to map a network drive is through the File Explorer interface. This method is visually guided and is recommended for most users, especially if this is your first time mapping a drive. The steps are nearly identical for Windows 11 and 10, with only a minor difference in accessing the context menu, which we will point out.
-
Open File Explorer and Locate ‘This PC’
Press the Windows logo key + E to open File Explorer. In the left-hand navigation pane, find and click on This PC.
-
Access the ‘Map Network Drive’ Tool
In the File Explorer ribbon at the top, click the See more button (it looks like three dots). From the dropdown menu, select Map network drive. For Windows 10 users, the ‘Map network drive’ option is often directly visible in the ‘Computer’ tab of the ribbon without needing to click ‘See more’.
-
Choose a Drive Letter
In the ‘Map Network Drive’ window, click the Drive: dropdown menu. Select an available letter to assign to your network folder. It’s helpful to choose a letter that reminds you of the content, like ‘M:’ for Movies or ‘S:’ for Shared. Accessibility Tip: You can use the Tab key to navigate between fields and the arrow keys to select a drive letter without using a mouse.
-
Enter the Network Path and Finish
In the Folder: field, type the full network path to your shared folder. Check the Reconnect at sign-in box to make the connection permanent. If the remote computer requires a different username and password, check Connect using different credentials. Click Finish. This step may take a moment as Windows connects to the device.
-
Confirm Success
Your new network drive should now be visible under the ‘Network locations’ section in This PC. Double-click it to ensure you can access the files within. If it opens correctly, the drive has been successfully mapped.
How to Add a Network Location for FTP or Web Sites
Difficulty: Beginner; Time to complete: 5-7 minutes
Beyond standard network folders, Windows also allows you to add shortcuts to FTP sites or other web locations. This approach does not assign a drive letter but creates a convenient link inside ‘This PC’, making it easy to access remote files without a dedicated FTP client.
-
Start the ‘Add Network Location’ Wizard
Following the steps from the previous method, open the ‘Map Network Drive’ window. At the bottom of this window, click the link that says Connect to a Web site that you can use to store your documents and pictures.
-
Choose a Custom Network Location
Click Next on the welcome screen. On the following screen, ensure Choose a custom network location is selected and click Next again. This option allows you to specify any web or FTP address.
-
Enter the FTP or Web Address
In the Internet or network address: field, type the full address of your FTP site or web location and click Next. Be sure to include the protocol prefix, such as
ftp://orhttp://. -
Provide Credentials and Name the Location
If the site requires a login, uncheck Log on anonymously and enter your User name. Click Next. On the next screen, provide a descriptive name for the network location, for example “My Web Server,” and click Next again.
-
Finish and Log On
Click Finish to complete the setup. A dialog box will likely appear prompting for your password. Enter it and click Log On. To confirm success, check for the new shortcut under ‘This PC’ in File Explorer.
How to Map a Network Drive Using Command Prompt
Difficulty: Intermediate; Time to complete: 3-5 minutes
For those who prefer the command line or need to automate tasks, Command Prompt provides a quick and effective way to map network drives. This method is ideal for creating batch files that map several drives at once. Don’t worry if the syntax looks complex; we will break it down.
-
Open Command Prompt
Press the Start button, type cmd, and select Command Prompt from the results. There is no need to run it as an administrator.
⚠️ Warning: Do not run Command Prompt as an administrator. If you do, the mapped drive will only be visible to the administrator session and will not appear in your regular File Explorer window.
-
Execute the ‘net use’ Command
To map a drive, use the
net usecommand with the syntax:net use DRIVE_LETTER: \\SERVER\SHAREFor example, to map the ‘Public’ share on a server named ‘NAS’ to the P: drive, type
net use P: \\NAS\Publicand press Enter. If the command is successful, you will see the message “The command completed successfully.”Troubleshooting: If you see “System error 53 has occurred. The network path was not found,” double-check the server name and your network connection. “System error 67” means the share name is incorrect.
-
Map a Persistent Drive with Credentials (Optional)
To make the drive reconnect automatically after a reboot and provide credentials, add the
/persistent:yesswitch and user information. The command is:net use P: \\NAS\Private password /user:username /persistent:yesReplace ‘password‘ and ‘username‘ with your actual credentials. To verify success, open File Explorer and check for the new drive under ‘This PC’.
How to Map a Network Drive Using PowerShell
Difficulty: Advanced; Time to complete: 3-5 minutes
PowerShell offers a modern and scriptable command-line alternative for managing network drives, ideal for system administrators. You might prefer this method if you are already working within a PowerShell environment or writing complex system management scripts.
-
Open PowerShell
Press the Start button, type powershell, and select Windows PowerShell from the results. As with Command Prompt, do not run it as an administrator.
⚠️ Warning: Running PowerShell as an administrator will create the mapped drive in a different session, making it invisible to your standard File Explorer.
-
Execute the ‘New-PSDrive’ Command
To map a persistent drive, use the
New-PSDrivecmdlet. The syntax is:
New-PSDrive -Name 'DRIVE_LETTER' -PSProvider 'FileSystem' -Root '\\SERVER\SHARE' -PersistFor example, to map the ‘Media’ share on ‘SERVER’ to the M: drive, type:
New-PSDrive -Name 'M' -PSProvider 'FileSystem' -Root '\\SERVER\Media' -Persistand press Enter. PowerShell will confirm the creation by displaying the drive’s details. You can also verify success by checking for the new drive in File Explorer.
How to Disconnect a Mapped Network Drive
When you no longer need a mapped drive, you can easily remove it. Disconnecting a drive simply removes the shortcut; it does not delete any data on the network share itself.
Disconnect Using File Explorer
-
Locate and Disconnect the Drive
Open File Explorer and navigate to This PC. Right-click the mapped drive you want to remove and select Disconnect. Note that in Windows 11, you may need to click Show more options first to see this command. The drive will immediately disappear.
Disconnect Using Command Prompt or PowerShell
-
Command Prompt: Open a standard Command Prompt and type:
net use DRIVE_LETTER: /deleteFor example, to remove the P: drive, use
net use P: /delete. A success message will appear. -
PowerShell: Open a standard PowerShell window and type:
Remove-PSDrive -Name 'DRIVE_LETTER'For example, to remove the M: drive, use
Remove-PSDrive -Name 'M'. The command will run without output if successful.
Troubleshooting Common Mapping Errors
If mapping a drive doesn’t work on the first try, the issue is often related to network visibility or permissions. Before diving into advanced fixes, check these common solutions.
Problem: Other Computers Don’t Appear on the Network
Ensure your computer’s network profile is set to Private, not Public. You can change this in Settings > Network & Internet > Properties for your current connection.
A ‘Private’ profile is more trusting of other devices. Also, check that Network Discovery is on. Open File Explorer, click Network, and if you see a yellow banner saying “Network discovery is turned off,” click it and select Turn on network discovery and file sharing.
Problem: You Receive an ‘Access Denied’ or ‘Network Path Not Found’ Error
This error usually means one of two things: you’ve typed the path incorrectly, or you don’t have permission. Double-check the path for typos. Try using the host computer’s IP address instead of its name.
If the path is correct, verify that your user account has been granted “Share” and “NTFS” permissions to the folder on the host machine. You may need to contact your network administrator to get access.
Problem: The ‘This PC’ or ‘Network’ Icon is Missing
If you cannot see ‘This PC’ or the ‘Network’ icon in File Explorer, your navigation pane might be hidden. To fix this, go to the View menu at the top of File Explorer, select Show, and ensure Navigation pane is checked.
FAQ – Frequently Asked Questions About Mapping Network Drives
Why does my mapped drive have a red ‘X’ on it after I restart my computer?
This is a common issue where Windows tries to reconnect the mapped drive before the network connection is fully initialized at startup. In most cases, the drive will connect and work properly as soon as you double-click it. To avoid this, you can create a startup script that waits a few seconds before running the ‘net use’ command.
What is the difference between mapping a drive and adding a network location?
Mapping a drive assigns a drive letter (e.g., Z:) and makes the network share behave almost exactly like a local drive, which is necessary for some older applications. Adding a network location creates a shortcut in ‘This PC’ but does not assign a drive letter. This is generally used for FTP or web servers and is a less intrusive method.
Is it safe to check ‘Reconnect at sign-in’ and save my password?
For a secure home network, it is generally safe and very convenient. However, on a public or corporate network, or on a laptop that you travel with, it poses a security risk. If your computer is compromised, an attacker could potentially gain access to the network share. Use this feature with caution based on your environment.
Why do I get an error about ‘unauthenticated guest access’ being blocked?
This is a security feature in modern Windows versions that prevents connections to unsecured (non-password-protected) shares. The best solution is to set a password on the shared folder. For less secure environments, advanced users can enable ‘insecure guest logons’ in the Local Group Policy Editor (gpedit.msc), but this is not recommended.
Can I map a drive on a computer that is not on my local network?
Yes, but it requires setting up a Virtual Private Network (VPN) to securely connect your computer to the remote network. Once the VPN connection is established, your computer behaves as if it is on the local network, and you can map the drive using its local IP address.
Does mapping a network drive use up local disk space?
No. A mapped drive is simply a shortcut to a folder that resides on another computer or device. The files are stored on the remote device, and your computer accesses them over the network. No data is stored on your local hard drive unless you explicitly copy it there.
My mapped drive disappeared, how do I get it back?
If a persistent mapped drive disappears, it could be due to a change in the network, the host computer being offline, or a change in your credentials. First, verify you can still access the network path directly in File Explorer. If so, you can re-map the drive using one of the methods in this tutorial. Ensure you check ‘Reconnect at sign-in’ again.
Will mapping a slow network drive affect my PC’s performance?
It can, but only when you are actively accessing files on that drive. General PC performance will not be affected. However, if an application (like a video editor or game) is trying to read or write large files from a slow or unstable network drive, that specific application will perform poorly. It will not slow down your entire operating system.
Can I use Group Policy to map drives for multiple users in a business environment?
Yes. For business or enterprise environments, using Group Policy (GPO) is the standard and most efficient method. An administrator can create a Group Policy Object to automatically map specific network drives for different groups of users when they log into any computer on the domain. This is far more scalable than manually mapping drives on each machine.
What are other ways to share files besides mapping a drive?
For sharing files over the internet, cloud services like OneDrive or Google Drive are the best option. For quick, one-time file transfers between nearby computers, Windows includes a feature called Nearby sharing. Mapped drives are best suited for permanent, high-speed access to large amounts of data on a local network, such as a media server or central document repository.
Related: How to Change a Drive Letter in Windows 10 or Windows 11
Windows helpfully assigns drive letters to disks as they’re added, but they aren’t always the most logical choices. While we all know that C: is the system drive, it doesn’t make quite as much sense to have D: as your games drive or E: as your media drive. In our other guide, we show you how to map a network drive in Windows 11 and Windows 10 for easier access to your media or FTP server.
Related: How to Create a Virtual Hard Drive or Virtual DVD Drive in Windows 11 and Windows 10
Creating virtual drives on Windows 11 or Windows 10 can be a beneficial way to manage your computer’s storage and processing capabilities. Creating a virtual drive in Windows is certainly useful for numerous situations. For example, loading a DVD image in ISO format, partitioning ramdisk for apps that hog system performance, or creating a secure drive that is secured by a password. In our other guide, we show you how to create virtual drives in Windows.

