Solved

AutoLogon

Posted on 1998-07-09
12
285 Views
Last Modified: 2013-11-19
How can I make Windows 95/NT to logon with a name, password and domain, which I may specify, automatically without prompting me to type in my password ? Do I have to set certain registry keys ?
0
Comment
Question by:ClausLeonhardt
12 Comments
 
LVL 3

Expert Comment

by:Norbert
ID: 1318897
I don't know if that is posible because it is against all security rules for networking
everyone who has access to the machine may login
0
 

Author Comment

by:ClausLeonhardt
ID: 1318898
Is it possible wit LogonUser(); ?
And if yes how exactly is this funtions used ?
0
 
LVL 3

Expert Comment

by:danny_pav
ID: 1318899
I vaguely remember getting one of those tip of the day emails that told how to do that.  It had to do with the registry.
0
 

Author Comment

by:ClausLeonhardt
ID: 1318900
Please tell me how exactly it works.
0
 
LVL 4

Expert Comment

by:piano_boxer
ID: 1318901
Download PowerToys from Microsoft, and istall the TweakUI tool. Its a control panel applet that lets you set 'advanced' settings in windows.

It has a network tab where you can enter username and password to automaticly log on.

Get it here:
http://www.microsoft.com/windows/download/powertoy.exe
0
 

Author Comment

by:ClausLeonhardt
ID: 1318902
Ok ... that program works fine but I have to do this in my program so I need to know what it does exactly. I found out that it adds the following lines to the system registry:
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon]
"DefaultUserName"=""
"DefaultPassword"=""
"AutoAdminLogon"="1"
"DontDisplayLastUserName"="0"

whereas UserName and Password is corresponding to the user you want to log in as.
But if I do this manually it does not work.
I suppose that TweakUI does something else additionally.
Can anyone help me ?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 4

Expert Comment

by:piano_boxer
ID: 1318903
On Window 95(98) TweakUI installs a service program the 'types' the logon information in for you, and presses OK.

On Window NT you can logon automaticly by setting some registry information (maby the one you mentioned, I cant remember).

The bottom line: On Win 95(98) you need to write a program that can enter the information into the login dialog.
0
 
LVL 4

Expert Comment

by:piano_boxer
ID: 1318904
On Window 95(98) TweakUI installs a service program the 'types' the logon information in for you, and presses OK.

On Window NT you can logon automaticly by setting some registry information (maby the one you mentioned, I cant remember).

The bottom line: On Win 95(98) you need to write a program that can enter the information into the login dialog.
0
 

Author Comment

by:ClausLeonhardt
ID: 1318905
Ok ... I´ll try that on Monday !
0
 

Author Comment

by:ClausLeonhardt
ID: 1318906
Ok that helped ... thanx
0
 

Author Comment

by:ClausLeonhardt
ID: 1318907
I can´t give you the points ... please lock the question again so I can give it to you !
0
 
LVL 4

Accepted Solution

by:
piano_boxer earned 100 total points
ID: 1318908
.
0

Featured Post

What Security Threats Are You Missing?

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

16 Experts available now in Live!

Get 1:1 Help Now