Solved

auto log in script

Posted on 2004-09-17
4
144 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 500 total points
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now