login script with username and password

Hi

I want to add a login script for a non domain win2k server so when users login to their computer it maps the drive to the non domain server so they can access it without having to use a username and password.

The users are all part of a domain so it would be handy to add this to the GPO.

I'm not sure about how to setup the script. I guess it would be along the lines of: net use x: \\server\share

How do I add the username and password so it logs them in without asking them.

I've setup a username and password on the non domain server to use in the script.

Thanks



LVL 1
hnadAsked:
Who is Participating?
 
GATOR420Connect With a Mentor Commented:
net use x: \\server\share /user:username *

Where * = password
0
 
Fatal_ExceptionCommented:
The net use command is also what I recommend, but you might also consider using Home Folders via the ADUC...

http://www.jsiinc.com/subk/tip5200/rh5223.htm
0
 
merowingerCommented:
if you want always the current username take %username%
mero
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
hnadAuthor Commented:
Hi

when I use the net use: x \\server\share /user:username password  i get "The credentials supplied conflict with an existing set of credentials."

Any reason why I would get this?
0
 
Fatal_ExceptionConnect With a Mentor Commented:
This may explain it...

http://support.microsoft.com/default.aspx?scid=kb;en-us;106211%22

Follow the steps in the article, and let us know..  

Also, disconnect all mapped drives and try it again..

FE
0
 
hnadAuthor Commented:
Thanks

Once i disconnected the other mapped drives it all worked. :)

0
 
Fatal_ExceptionCommented:
Very good, and thank you..

FE
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.