?
Solved

auto log in script

Posted on 2004-09-17
4
Medium Priority
?
153 Views
Last Modified: 2013-12-04
I have three PCs on a workgroup called MAD-BIKERS. They are all using windows XP pro SP2. The connection is on a wireless network. At the moment there are two shares on one of the pcs called dfsroot$. When the user logs on to another pc with their log on if I map to the share from there PC using my log on to connect i map succesfully. But if they reboot there PC it looses the connection needing me to VNC to there PC and insert my password to map. This is fine after i enter my password but i was wondering can i run a log in script to map as they log on? I have tried adding accounts to the log on as a service but no luck. I know if it was a domain I wouldnt have the problem as security is centrally controlled
0
Comment
Question by:chorley200
[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
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
jimmybartlett earned 2000 total points
ID: 12085407
you could write a short batch file that includes the NET USE command. This would allow you to actually hard code your credentials into the file. Now, this is not recommended, as the user could easily find the batch file and read it in notepad to discover your password, so the solution may be to create a user with elevated privileges that can map the drive but has no system admin rights. then use that user's username and pw to map the drive in that batch file.   you could make the username and password some really cryptic characters so that a layman reading the script would not recognize them as a username and password.
NET USE syntax:
NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

actually, after looking at the syntax printout, it looks like you could just have it save your credentials. You could put in your pw the first time and after that it would do it automatically. Try it with the /savecred switch.
let me know if this helps.
0
 
LVL 1

Expert Comment

by:markoidwilson
ID: 12086970

Not sure if i have got the question right but...If you create all of your users locally on each PC with the same passwords this may solve your authentication problems. No need to worry about logon scripts
0
 
LVL 1

Expert Comment

by:jimmybartlett
ID: 12087015
Chorley200 is trying to map drives that are not accessible to the users as a default. They need elevated privileges. the login that the users have now is not privileged enough to gain access to that resource.
0
 
LVL 1

Expert Comment

by:markoidwilson
ID: 12090794
jimmy your idea is quite right.

But why not then grant permissons on the share ?
Map the drive by going into windows explorer/tools/map network drive and keep the reconnect at logon box ticked.
See where I was going with that one..
0

Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

In today's information driven age, entrepreneurs have so many great tools and options at their disposal to help turn good ideas into a thriving business. With cloud-based online services, such as Amazon's Web Services (AWS) or Microsoft's Azure, bus…
No security measures warrant 100% as a "silver bullet". The truth is we also cannot assume anything but a defensive and vigilance posture. Adopt no trust by default and reveal in assumption. Only assume anonymity or invisibility in the reverse. Safe…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

800 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