There's two was to do it - the GUI, or a command line.
GUI Method
- Right click 'My Computer' -> 'Disconnect Network Drive'.
- Select your network drive, and disconnect it.
- Right click 'My Computer' -> 'Map Network Drive'.
- Enter the path, and click 'Connect using a different username and password'
- Input the appropriate username and password.
Command Line
- Create a new batch file with the follwing:
@echo off
net use x: /delete
net use x: \\server\share /USER:COMPUTER\User password
exit
Where:
x: is your preferred drive
\\server\share is your computer name, and share name
COMPUTER\User is the computer's name (or IP) and a valid username on that PC.
Save this in your startup; and it will run when you log onto the computer. The batch file is my personal preferred method, because it overrides any stale credentials that your computer might be saving.
Also keep in mind authentication. When Windows connects to another computer, it first uses your logon information to authenticate. Normally, the guest account is enabled, which is why most computers won't prompt for a password. If that doesn't work, you need to specify an account that is on the remote computer; in the form of COMPUTERNAME\Username. You can specify COMPUTERNAME as a NetBIOS name, or you can use an IP address, such as 192.168.0.100; or whatever the case may be.
The GUI didn't help - it still didn't remember my password the next time I logged on.
The command line helped - thank you very much. – Lea Cohen – 2009-08-20T07:03:40.960