Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

AutoLogon

Posted on 1998-07-09
12
Medium Priority
?
298 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
Independent Software Vendors: 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!

 

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

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 Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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.
Suggested Courses

972 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