Net Use bug?

March 12, 2009 at 11:16:58
Specs: Windows XP, 1.3 Ghz / 1 Gb RAM
I have been using a batch file to automatically map a drive to remote PCs. It's been working fine until the last month or so. Here's how I've been doing it:

echo. | net use %drive%: \\%IP%\c$ /user:administrator password >nul

The "echo. |" will allow the user to not have to enter a username or a password in order to map the drive. Unfortunately, some of the systems I regularly connect to have started rejecting this method for no reason I can find. It will give this:

System error 1326 has occurred.
Logon failure: unknown user name or bad password.

Neither the username or the password on the remote system have been changed; in fact, if I run the NET USE command manually using the same username and password (without the "echo. |"), it connects just fine. Can anyone think of a reason why the automatic method would suddenly stop working? Obviously something has changed, but I don't have the first idea where to start looking. The system I'm connecting from is running WinXP Pro SP2, the systems I connect to are Win2000 Pro SP3.

See More: Net Use bug?

Report •

March 12, 2009 at 13:51:06
I'm not sure if it will help but there is another way to send return to a command. Inputting nul into it using "< nul".

<nul >nul net use %drive%: \\%IP%\c$ /user:administrator password

Report •

March 16, 2009 at 12:14:00
Thanks! I will give that a try!

Report •

Related Solutions

Ask Question