On Windows 10, you can use the “net use” command to quickly map a network drive to access files on a shared folder located on a server or another computer in the network. The only caveat is that when using the command, you usually have to specify a driver letter to make the drive available in File Explorer, but if the letter is already in use, the drive will not connect.
If you want to avoid mapping problems, you can use a specific option in the command that will assign a drive letter automatically.
In this guide, you’ll learn the steps to use Command Prompt to map a network drive without having to specify a drive letter.
How to map a network drive assigning letter automatically
To map a network drive on Windows 10 assigning a drive letter automatically, use the following steps:
Search for Command Prompt, right-click the top result, and select Run as administrator.
Type the following command to map the network drive using the next available drive letter and press Enter:
net use * \\networkShare\files
In the command, the (*) is the option that allows the system to assign any drive letter that isn’t already in use.
Once you’ve completed the steps, the network drive will be mapped assigning the next available drive letter automatically, and the command will let you know the letter the new map is using.
Using the net use command, you can also disconnect, make mapped network drives persistent, connect using different credentials, and a lot more. Here you can learn more on how to use the map command on Windows 10.
This guide focuses on Windows 10, but you can use the same command on Windows 8.1, Windows 7, and previous versions. Also, if you’re having trouble using the command-line tool, you can submit your questions in the Pureinfotech forums.