Danchou
(Just in Town)
2010-01-19 09:29 AM
Map network drive as a different domain user

Hello everyone

I've looked through the forums for a while now but couldn't find this particular problem;
I am trying to map a network drive via script on a Citrix server. When the loginscript is being executed I get an error message on this line:
 Code:
use l: "\\xxx.xxx.xxx.xxx\folder" /USER:domain\user /PASSWORD:password /PERSISTENT:YES


I have another drive that is mapped the same way, which works fine. The only difference is that the username does not contain the domain name.
Now my question is, is it possible to map a drive with a different user and am I using the wrong command?

Thanks in advance for any advice


Richard H.Administrator
(KiX Supporter)
2010-01-19 09:43 AM
Re: Map network drive as a different domain user

What's the error?

Try putting the username and password in quotes if they contain special characters.
 Code:
use l: "\\xxx.xxx.xxx.xxx\folder" /USER:"domain\user" /PASSWORD:"password" /PERSISTENT:YES


It's also possible that the error is on a completely different line. For example if you've missed a double-quote character earlier in the script it may not show as an error until you hit the double-quote on this line.

Post the entire script if you can, it makes it easier to diagnose.


Danchou
(Just in Town)
2010-01-19 10:04 AM
Re: Map network drive as a different domain user

Thank you very much, I didn't think of putting the password into quotes, that worked perfectly!

Regards


Sealeopard
(KiX Master)
2010-01-25 04:13 AM
Re: Map network drive as a different domain user

There are also various MapDrive() UDFs in the UDF Forum that support usernames and passwords.