This mapping is useful when you are using network sahred printer and your pc is asking network password every time you try to connect. This command will create a hidden map while booting the system.
This is the registry file for mapping a network pc in invisible mode which is password protected using batch file.Open notepad and type the following command and save it as map.reg.
This example will map a computer with name “pc1” and shared folder name “share1”. The username required to connect is “user1” and password is “password1”.
Note : Please execute once
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]”haneef_map”=”net use * \\\\pc1\\share1 /user:user1 password1 /PERSISTENT:NO”