Link to home
Start Free TrialLog in
Avatar of mei_liu
mei_liu

asked on

where to supply password for user1 in logonscript

Could anyone let us know where to supply the password in the following statement?

net use e: \\appsvr\D$ /user:appsvr\user1

Thanks
Avatar of Irwin Santos
Irwin Santos
Flag of United States of America image

Use this

net use x: \\server\share /user:username *

Where * = password

Avatar of Lee W, MVP
Why are you trying to connect to an administrative share in a logon script?

This is not the correct way of doing things.

If you need to, reshare the root as something else, then you won't need to administratively connect
ASKER CERTIFIED SOLUTION
Avatar of Rob Williams
Rob Williams
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mei_liu
mei_liu

ASKER

Both Leew and RobWill have a very valid point. This is a ts enviornment, and we have some customized code that uses drive E:\ on the old app server. When we moved the application to a new TS server, we couldn't customize it since we don't have the source code, but we needed to map d: to e: which would make our application to work properly.

Since RobWill's statement works, we will give him the points.

Thanks all!
Why not just use SUBST instead of mapping back to a drive?
Thanks mei_liu,
--Rob