• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

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 ?
0
ClausLeonhardt
Asked:
ClausLeonhardt
1 Solution
 
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
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
piano_boxerCommented:
.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now