NET USE keeps giving a 1326 error

G

Guest

Hi,

I have a .bat script on my Win 2000 server that uses the command NET USE
\\Server\Share USERID PASSWORD to connect to another WIn 2000 server to copy
a file from it.

If I type the command from a command prompt, it connects to the other server
ok, but whenever I run the .bat script it fails to connect and gives the
error: Login Failed 1326.

This would normally be a bad username or password, but it I try it again
from the prompt, I can still connect.

Has anyone come across anything like this before?

The script was running fine every day for 6 months as a Scheduled task, but
just stopped working correctly last week. There was nothing changed on the
server that I was aware of.

Any help would be appreciated.

Thanks.
 
J

John Wunderlich

I have a .bat script on my Win 2000 server that uses the command
NET USE \\Server\Share USERID PASSWORD to connect to another WIn
2000 server to copy a file from it.

If I type the command from a command prompt, it connects to the
other server ok, but whenever I run the .bat script it fails to
connect and gives the error: Login Failed 1326.

Interesting, as the correct syntax for the "net use" command is:

net use \\Server\Share PASSWORD /user:USERID

HTH,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top