Remember network share password on MS Windows XP HomePosted: February 13, 2012
One of the annoying features of MS Windows XP Home Edition is its inability to remember passwords for network shares. It is not a failure in operation, as one might think. It is a feature by design. XP Home just isn’t supposed to do that. Due to some smartass marketing considerations, obviously.
A way for workaround is this:
- Launch Start -> Run -> regedit
- Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
- Add new string value and give it a name, any name
- Double click the new entry and enter “net use \\<server_address> <user_password> /USER:<domain_name>\<user_name>”
Substitute the required parameters with the actual ones. The domain name typically is the name of the machine which you are connecting to. In the real world it would look something like this:
net use \\192.168.0.1 KnockKnocj345 /USER:HQSERVER\WilliAm
Now, when you log in to your user session, your network connection is authenticated automatically and the share is available for access.
- Your username and password are stored in plain text and can bee seen to anyone who peers into your registry. In theory. Still, in practice it seems to be safe enough.
- Side effect of running this command at startup is a black command prompt windows popping up for a split second right after login. If that bothers you, you may move the connection command out into a batch file somewhere in you user directory and make it run invisibly (like this). Though doing so would expose your plain text username and password to considerably higher risk of discovery by bad guys, which is not a good thing.
People are describing a different method, which I have not tested so far. It goes like this:
- Connect to the network share as you normally would.
- Do Start -> Turn Off Computer -> Stand By
- Wake the computer up
- Do Start -> Turn Off Computer -> Restart
After this the computer is supposed to connect to the remote network share without asking for credentials. It is thought that going standby with the network share open forces XP Home to store the password somewhere for later reconnection.
If somebody tries this and finds it to be true, please let me know!