Mapping a network drive gives a shared folder - on another PC, a NAS box or an office server - its own drive letter, such as Z:, in File Explorer. You can then open it like a USB drive, without typing its network address every time.
You need:
\\computer-name\share-name (for example \\OFFICE-PC\Documents or \\192.168.1.20\Backup).At work, your IT team usually gives you the path. At home, the NAS maker's app or the other PC's sharing settings show it.
These are Microsoft's steps:
The drive now appears under This PC > Network locations.
Handy if you set up several PCs, or Explorer's dialog keeps failing. Open Command Prompt (no administrator rights needed - in fact, run it as your normal user so the drive shows up for you) and type:
net use Z: \\OFFICE-PC\Documents /persistent:yes
Z: with a free letter and the path with your share./persistent:yes reconnects the drive at every sign-in./user:OFFICE-PC\username and Windows will ask for the password.If it works, you'll see The command completed successfully. To list your mapped drives, type net use on its own.
Tip: a drive mapped from an administrator Command Prompt or PowerShell window may not appear in your normal File Explorer, because Windows keeps the two sessions separate. Map drives from a normal window.
net use Z: /deleteDisconnecting only removes the shortcut letter. The files on the other computer or NAS are not touched.
Work through these in order:
\\192.168.1.20\Backup). If the IP works but the name doesn't, it's a name-lookup problem on your network; the IP path is a fine workaround.Don't turn on old file-sharing protocols such as SMB 1.0 to make an old NAS work - they are switched off for security reasons. Update the NAS firmware instead, or ask its maker.
If you're moving files to a new computer rather than sharing them long term, see how to transfer files from an old PC to a new PC. To get files from your phone onto the PC, see how to share files between Android and Windows PC.
Use the form \\\\computer-name\\share-name, for example \\\\OFFICE-PC\\Documents or \\\\192.168.1.20\\Backup. The share name is the name given to the shared folder, not its local path.
Windows often shows a red X until you open the drive, because the network wasn't ready at sign-in. Open it in File Explorer. If it still won't connect, check that the other computer or NAS is on and reachable.
Yes, if that folder is shared and both PCs are on a network marked as Private. You'll need a user name and password that the other PC accepts.
In File Explorer, right-click the drive under This PC and select Disconnect, or run net use Z: /delete in Command Prompt, replacing Z: with your drive letter.
Comments