We can map a network drive from windows command line using the command net use.Syntax is given below. net use z: \\remotepc\sharename The above command maps the drive letter Z: to the network share \\remotepc\sharename.If the logged in user has authorized access to this network share, the above command completes successfully without asking the user to provide username/password.

Windows 10 Does Not Reconnect Mapped Network Drives [Fix] Move the *.cmd file you created to the Startup folder. Refer to the following article: How to add or remove startup apps in Windows 10. In short, press Win + R shortcut keys together and type the following into the Run box: shell:Startup. This will open your Startup folder in File Explorer. Move the reconnect.cmd file there and you are done create bat file to map drive - TechRepublic Net use batch files are definitely the way to go. One word of advise is to have a: net use: /delete first. This will ensure that the drive letters are used.

3) A batch file. The next step up would be to apply the Net Use commands using a batch file (also called script) which the user can apply by clicking on a desktop shortcut or by adding it to the start menu “StartUp” folder. Though this method of applying the batch file is not at all practical, using a batch file is a reasonable option.

How to Create Batch File to Mount Network Drive | Tech Nov 02, 2011

We can map a network drive from windows command line using the command net use.Syntax is given below. net use z: \\remotepc\sharename The above command maps the drive letter Z: to the network share \\remotepc\sharename.If the logged in user has authorized access to this network share, the above command completes successfully without asking the user to provide username/password.

This .vbs code creates a .bat file with the current mapped network drives. Then, just put the created file into the machine which you want to re-create the mappings and double-click it. It will try to create all mappings using the same drive letters (errors can occur if any letter is in use). How to create a batch file for network drive mapping In an Active Directory 2008 environment, you can do this but sometimes it doesn't work out quite the way you expected it to, especially with Windows XP. That's why sometimes it's jsut easier to setup a batch file to quickly and easily setup a mapped network drive for any users of a particular workstation. Creating Batch File to Map Network Drive - AppleScript If you want to save time by creating a batch file that when you click on it it will automatically map the drive for you. Or if the map network drive keep disconnecting every time you restart your computer, then you can put the batch file in the start up folder so that it run every log in. (Solved) - How to make a BAT file to make Network Drive Apr 17, 2012