How to Map Network Drive With Command Prompt in Windows 10

 
Straightforward Methods to Map Network Drive With Command Prompt on Windows 10 through steps. – This is a pretty simple job and you find an option within the ribbon of File explorer for this. But if you are a techie user you can accomplish the same by means of command prompt in a simpler way.

 

You know that after mapping a Network Drive, it becomes accessible by users in the local network. While connecting to any network drive in windows 10 it creates a shortcut. This shortcut is the shared folder which contains the drive letter, username, and password. Once you map a drive, it appears in This PC under “Network locations” so that you can use it.

Way to Map Network Drive With Command Prompt in Windows 10

Step 1- To reach out the Command Prompt right-click on the Start button. Out of all the visible options on the power user, menu select “Command Prompt (Admin)”.

Mapping a Not Protected Network Drive

Now let us assume that the drive letter is Z and it is not protected by a password. Then to map that network drive type the given command followed by the pressing Enter key.

net use z: \\networkShare\files

Map Network Drive With Command Prompt in Windows 10 picture 1

Mapping a Protected Network Drive

In the second scenario if the drive is protected by a password then use the following command and press the Enter key. Even in this scenario, the name of the drive is Z.

net use z: \\networkShare\files /user:driveusername Passkey

Map Network Drive With Command Prompt in Windows 10 picture 2
It is especially relevant here that you need to change the drive username and Passkey with the original username and the password of the drive.

Permanent Mapping to a network drive

If you restart the device after mapping to the network then you may lose the “network drive mapping”. It is so because the previous mappings were not permanent. So if you want to forevermore map the network drive then use the following command.

net use z: \\networkShare\files /P:yes

Map Network Drive With Command Prompt in Windows 10 picture 3
Now here the alphabet P shows that the connection is a permanent one.

Removing a Mapped Network Drive

Already mapped can be removed with the use of this command –

net use z: /Delete

Map Network Drive With Command Prompt in Windows 10 picture 4

Removing Multiple Mapped Network Drives

If you have more than one mapped networks then you need to use the following command and press the Enter key to delete all of them together.

net use * /Delete

Map Network Drive With Command Prompt in Windows 10 picture 5
As soon as you will execute the following command there will not be any mapped network flashing in the File Explorer. This will remove any number of mapped network drives.

Closing Up

Therefore this guide helps if you want to Map Network Drive With Command Prompt in Windows 10. You can easily share the documents and do not need to carry them in a pen drive or anything after mapping.

  • How to Copy UNC Network Path Without Drive Letter in Windows 10
  • How to Use cmd Command Traceroute in Windows 10
  • How To Share Folders On Network in Windows 10, 8
  • How to share files between Mac and Windows PC easily
  • Guide to Create Shared Folder Shortcut on Windows 10, 8
  • Tips to Map OneDrive in This PC on Windows 8.1 PC
  •  

    Leave a Reply

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