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

x
?
Solved

auto log in script

Posted on 2004-09-17
4
Medium Priority
?
164 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
  • 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

834 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