[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2020
  • Last Modified:

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



0
hnad
Asked:
hnad
2 Solutions
 
GATOR420Commented:
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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_ExceptionCommented:
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now