Solved

Logoff autologon

Posted on 2002-03-29
9
348 Views
Last Modified: 2012-05-04
I have used tweakui, hacked the registry, and performed other stupid human tricks to get this to happen. We have some legacy applications that do not (will not) run as services. From time to time they crash and someone has to clear the error and restart the app. We found that by logging off and logging back on periodically clears all the messages and restarts the applications works perfectly. This was not a problem on NT4.0. We used a resource kit function called logoff.exe to logout the current session and used autolog.exe to automatically log back in as administrator and start the applications. Well this process does not seem to work in 2000. If the SERVER is restarted the system will autologon. But if you choose to logoff, it will not re-login. You are prompted to enter the password again. Is there a way to get this to behave the way NT4.0 did? If so. Please enlighten me. Thanks!

 
0
Comment
Question by:gwaltersii
[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
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 3

Expert Comment

by:lpenrod
ID: 6905913
This might be relevant: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q234562

I have not tried it.
0
 

Author Comment

by:gwaltersii
ID: 6906004
It's the same process. Not sure there is an answer to this one.
0
 
LVL 14

Expert Comment

by:AvonWyss
ID: 6906124
What would certainly work is a compete automated reboot, since Autologon will then login again. But this may not be an option if uniterrupted availability of the macine is important. In this case, you could use the KILL command to force the application(s) to close and relaunch them afterwards (for instance using a batch file).
0
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

Author Comment

by:gwaltersii
ID: 6906172
Do you have an example of using the KILL command?
0
 
LVL 14

Accepted Solution

by:
AvonWyss earned 100 total points
ID: 6906691
KILL.EXE is part of the resource kit. Just supply the name of a process as parameter, and it will shutdown this process immediately.

If you don't have the resource kit, you can download PSKILL from www.sysinternals.com for free, which basically does the same.
0
 

Author Comment

by:gwaltersii
ID: 6907625
With a little work, I found the KILL.exe file. It is not a part of the resource kit for 2000. However it is packaged with Windows 2000 on the 2000 server CD under support|tools. Kill.exe -f will force a process to quit no matter the state. Usage: "Kill -f program.exe". This also works with services. I like it much better than the logoff approach. Thanks!

0
 
LVL 13

Expert Comment

by:seb_acker
ID: 7770442
you can also use the ForceAutoLogon registry Option to 1
0
 
LVL 13

Expert Comment

by:seb_acker
ID: 7770443
you can also use the ForceAutoLogon registry Option to 1
0
 

Expert Comment

by:crmck
ID: 8059097
We had this same problem when we converted from NT 4.0 to Win2K.  NT 4.0 would autologon the default user after a system boot or logoff.exe if DefaultUserName and DefaultPassword were defined and AutoAdminLogon=1.  Win2K would only perform the autologon after a system boot.  To mimic the NT 4.0 behavior, set ForceAutoLogon=1.  All of these registry values are in HKEY_LOCALMACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.  I found the following page helpful, too:  http://perso.wanadoo.fr/tmcd2/WinLogon.htm
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Microsoft is moving in-place eDiscovery & hold from ECP to EOP console under Content Search in Search and Investigation Options.  In this post, I will be showing you how to export emails to a PST file using the Content Search Options.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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