Solved

AutoLogon

Posted on 1998-07-09
12
292 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 131
dog bark java program 15 109
zeroFront challenge 7 111
Fibonacci challenge 11 133
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 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