System Administration

Mount Network Drive Using Windows CMD

28 Jan , 2015  

This is the command for mounting network drive :
NET USE [drive_letter] [path_to_network_drive] /PERSISTENCE:[YES/NO]

  • Replace [drive_letter] to the assigned drive letter, for example Z:
  • Replace [path_to_network_drive] with the Fully Qualified Domain Name (FQDN) path, for example \\\codes
  • Choose between YES or NO for persistence option. If you choose YES, then the mount point will be kept after you log out. If you choose NO, the network drive will be disconnected when you log out.

With this command you can improvise to mount network drive on your client windows machines. For example you can create a batch file called sharedfolder.bat which contains:
Then you just need to create a Group Policy Object (GPO) which run this script during user log in process.

Satrio G. Nugraha

Satrio is a self-proclaimed technology geek. He is currently employed by IBM Indonesia as an IT Specialist which handles IBM xSeries servers, IBM zSeries mainframes and multi vendor network devices. He listens to various kinds of musics (he personally believes that music should not be put into boxes such as genres and everybody is free to listen to whatever kind of music whenever they feel like it).

Latest posts by Satrio G. Nugraha (see all)

, , , ,

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.