How to map a network drive using the Terminal in Windows


Mapping a network share to File Explorer is a breeze, but if you can remember the commands, it’s even faster to do it from a Terminal window. So in this video, we’ll show you exactly what you need to do.

Note: Just a heads up, depending on how you set up your local Windows user account and your network share user account, you might be asked to enter a username and password. If that happens, you’ll need to enter the credentials for the account you created on your file server. But if the user profile you use to log into Windows matches the user account details you created on your file server, Windows won’t prompt you for any user credentials when you connect to your network share.

  • Select the Windows button and search for Terminal
  • Open the Terminal application
  • At the command prompt type: 
net use P: \\the ip address of your nas\Public /persistent:n

Note: As Windows users like to assign drive letters to network shares. We recommend that you follow the basic convention, of using the first letter from the shares name. However avoid trying to use the letters C, D, and E as these have historically been reserved for hard drives, disk drives and flash drives. 

  • This confirmed that the network shares on your NAS will working
  • Open File Explorer, you find a mapped drive called P:Public
  • Select the Windows button and search for Terminal
  • Open the Terminal application
  • At the command prompt type:
net use P: /delete

Add comment

Your email address will not be published. Required fields are marked *

Our site members

Support This Site

If you enjoy our content but don't want to be a site member. Please consider supporting us on Ko-fi to keep us ads free. Thanks for all your support