Solved

login script with username and password

Posted on 2004-08-05
7
2,013 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
7 Comments
 
LVL 7

Accepted Solution

by:
GATOR420 earned 125 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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 125 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 2003 Terminal Server licenses 3 358
Why won't wireshark open my tcpdump file from linux 13 3,185
Application Deployment - Simple 7 651
Outlook 2013 Certicate error 1 296
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…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 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