IT SOLUTIONS
Your TECHNOLOGY partner! 
-Collapse +Expand
Windows
Search Windows Group:

Advanced
-Collapse +Expand Windows Group Home
-Collapse +Expand Message Board
-Collapse +Expand Windows KB
-Collapse +Expand Windows Study Test
PRESTWOODCERTIFIED
-Collapse +Expand Windows Store
PRESTWOODSTORE
-Collapse +Expand Members Only

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyWindows Users BoardWindows 9x, ME, NT, 2000, XP Topic     Print This   

Auto Logon Win2K through VC++

Auto Logon Win2K through VC++ in Windows 9x, ME, NT, 2000, XP topic (part of our Windows Users group).

Quick Search: through   Auto Logon   Auto Logon Win2K   through VC  
Most Recent Post

andyhud
I am using Win2K Professional Edition and having problems when trying to auto reboot and log on repetitively using code. I am trying to log on a user that belongs to the Restricted Users group.

I am restarting the PC by adjusting the user privileges to include SE_SHUTDOWN_NAME
and then calling ExitWindowsEx with EWX_REBOOT|EWX_FORCE flags. I have also tried
this using the InitiateSystemShutdown method.

I have tried the following....
1) Logged on as an administrator
2) Cleared "Users must enter a user name and password to use this computer" in Users and Passwords and entered my restricted user details.
3) Cleared "Require users to press Ctrl+Alt+Delete before logging on" in the advanced tab of Users and Passwords.
4) Changed the following in the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\WindowsNT\CurrentVersion\Winlogon'
AutoAdminLogon = 1
DontDisplayLastUserName = 0
DefaultPassword = "restricted user's password"
DefaultUserName = "restricted user's username"
DefaultDomainName = "current PC that is in a workgroup"
ForceAutoLogon = 1
5) Restart the machine manually - AutoLogs in successfully
6) Restart the machine using VC++ - Fails, appears at the logon screen.

This worked fine on NT4 SP 5 - what's happened???

I have also tried using Tweak UI to configure the above settings but received the same failure.

Any help would be much much appreciated.
Andy.
 Posted 12 years ago (Thread Starter)
Comment Quote
Location=Fleet, Surrey, England ,  Joined=12 years ago   MB Posts=14  
More... -Collapse +Expand
andyhud
 (Inactive)
Fleet, Surrey, England
Rank: Cadet 3rd Year
Email Inactive E USA
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.
Post ID #1771, No Replies Be the first!
Thread Started 4/18/2001 4:30:00 AM
View Counter=1430

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post:

Enter your name and security key.

Your Name:
Today's security key = P246A
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #1771 Counter
1430
Since 4/2/2008
-
  Load Time=less than 1 second.
 
Print This
-
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


713 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join now. It's free!
Show More...


©1995-2013 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech