Solved

AutoLogon

Posted on 1998-07-09
12
290 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Host to IP 7 78
Change owner from userA to server Local Administrators 7 62
FizzBuzz challenge 9 81
x-bar in Google Sheets 2 54
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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 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