?
Solved

login script with username and password

Posted on 2004-08-05
7
Medium Priority
?
2,017 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

762 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