When using the command USE with /user: and /pass: in a tokenized script, it seems that the script ignores those parameters. In result you get a "1326 - Logon failure: unknown user name or bad password.".

Running the .kix seems ok, but when running the tokenized version it fails.

test.kix:
USE k: "\\server\share" /USER:server\user /PASS:mypass
? "USE K: " + @ERROR
results in: USE K: 0

test.kx (from source in script above):
results in: USE K: 1326

The security log on the server tells me that the .kx tries to connect as anonymous.

I've tried both /USER:user and /USER:server\user.

The server is a standalone server (2003), the client running the script is a domain-member (xp).

Is there anyway to get around this?

Thanks in advance.


Best regards,
Vikers