Thursday, 13 April 2017

Map Network Drives Via Command Prompt in Windows

In order to map network drive via command prompt, we use net use command.
To map network drive first we need to know the share path which is also called as UNC path, If you have then use the following command to map shared folder in the name of Movies as E Drive.

net use e: \\Home-PC\Movies

  • Home-PC – It’s a computer name where share folder created
  • Movies – It’s a shared folder name


If a share folder is password protected and to access shared folder you need to enter username password, then use the following command


net use e: \\Home-PC\Movies /user TestUser Password 


  • TestUser – It’s a user name who has access to the shared folder
  • Password – Password of user name who has access to the shared folder


The Drives which you mapped is a temporary one when you reboot your PC the mapped network drives will disappear from your Computer. If you want permanently mapped the network drive on your PC, then use following command.

net use e: \\Home-PC\Movies /P:Yes




To delete mapped network drive use following command
net use e: /Delete



And the last command is to delete all the mapped network drive from your PC.

net use * /Delete

No comments:

Post a comment