Solved

AutoLogon

Posted on 1998-07-09
12
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: 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 100 total points
ID: 1318908
.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

695 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