Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

login script with username and password

Posted on 2004-08-05
7
Medium Priority
?
2,018 Views
Last Modified: 2010-04-13
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
Comment
Question by:hnad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 7

Accepted Solution

by:
GATOR420 earned 500 total points
ID: 11732301
net use x: \\server\share /user:username *

Where * = password
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11732375
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
 
LVL 31

Expert Comment

by:merowinger
ID: 11733195
if you want always the current username take %username%
mero
0
[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

 
LVL 1

Author Comment

by:hnad
ID: 11749346
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
 
LVL 40

Assisted Solution

by:Fatal_Exception
Fatal_Exception earned 500 total points
ID: 11749364
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
 
LVL 1

Author Comment

by:hnad
ID: 11750211
Thanks

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

0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 11751474
Very good, and thank you..

FE
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Working from home is a dream for many people who aren’t happy about getting up early, going to the office, and spending long hours at work. There are lots of benefits of remote work for employees.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question