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.

, , , ,