Thursday, December 6, 2012

Remember Password for server share folder in Windows XP

Learnt something today in office. As I need to set "Remember Password" for my share folder.
The "Remember Password" message box will appear everytime I want to access to the server share folder. I have checked for the "Remember Password" checkbox at the message box, yet it does not work and will ask for the password. So with the keyword: "permanent remember password shared folder in windows xp" in google search. I could find the solution in one of the forum.

Here you go!


1. Create a batch file named "connect.bat" (or anything .bat) with the single line : 


net use X: \\server\share abc /USER:dec /PERSISTENT:YES 




For example: -

X: (The new map drive)
server: 192.168.1.xxx
share (folder directory)
abc: password
dec: local username

2. If using Notepad, be sure it doesn't actually save the file as "connect.bat.txt", 

by selecting Save as type : "All Files", and enter the full filename "connect.bat". 




3. (optional) Test this out by double-clicking "connect.bat" to run it. See if the share 

connects correctly. The new share drive should appear in the "My Computer" window. 

4. Move "connect.bat" into your "Startup" folder. Click "Start" -> "All Programs" -> 

"Startup", then right-click and select "Open". Drag the batch file into this folder. 



Now, the share will re-connect every time you login. You may still get the message 

"Could not reconnect network drives," but it should be connected anyway. 

Original Source: Tom's hardware

No comments: