AutoLogon

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 ?
ClausLeonhardtAsked:
Who is Participating?
 
piano_boxerConnect With a Mentor Commented:
.
0
 
NorbertCommented:
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
 
ClausLeonhardtAuthor Commented:
Is it possible wit LogonUser(); ?
And if yes how exactly is this funtions used ?
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.

 
danny_pavCommented:
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
 
ClausLeonhardtAuthor Commented:
Please tell me how exactly it works.
0
 
piano_boxerCommented:
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
 
ClausLeonhardtAuthor Commented:
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
 
piano_boxerCommented:
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
 
piano_boxerCommented:
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
 
ClausLeonhardtAuthor Commented:
Ok ... I´ll try that on Monday !
0
 
ClausLeonhardtAuthor Commented:
Ok that helped ... thanx
0
 
ClausLeonhardtAuthor Commented:
I can´t give you the points ... please lock the question again so I can give it to you !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.