How to fix the Cancel Logon problem, Method I

Posted On 2007-01-01 by FortyPoundHead
Keywords: Cancel Logon
Tags: Tip Windows
Views: 1481

The problem: You have set up several Windows passwords for the users working with your computer. You hope that from now on a user will have to enter a correct user name and password before s/he will be allowed to start working with Windows. This protection, however, can be easily bypassed (unless your computer is connected to a secure network):
Anyone can logon to Windows as a new user - simply by typing a new user name at the logon prompt. Or an unauthorized user can just press the Cancel button at the logon prompt and start using the computer as the default user.

One method of fixing this problem is as follows:

  • Make sure that the user profiles are enabled and created for each user, and that the
    Include Start Menu and Program groups in user settings option is enabled for each user. (Otherwise, you can easily lock yourself out of your computer by using this method!)

  • Make sure you know how to reboot Windows in the safe mode. If something works not as you expected, you can always reboot your computer in the safe mode and correct the problems.

  • Run Registry Editor (RegEdit.exe).

    Please be very careful when using this tool, because if you do something wrong with it, you may end up reinstalling Windows from scratch!

  • Find the following key in the Registry:








    Create a new string value under this key and rename it to FixLogon (or use some other name if you like).

    (To create the string value: right-click on Run, select New - String Value from the shortcut menu, and then enter FixLogon as the name of the new entry.)

  • Now open the FixLogon entry you've just created
    (by double-clicking it in the right pane of the Registry Editor window)
    and specify the following command as its Value data:

    rundll.exe user.exe,EXITWINDOWS

From now on, whenever someone logs on by pressing Cancel on the logon prompt, or by entering a new user name in the logon screen, the Windows session will be immediately terminated. The other user accounts may be used as usual.

To restore the original functionality, simply delete the FixLogon entry you've created.

If you want to create a new user account, you should remove the FixLogon entry before creating the account, and then restore the entry back after the new account has been created. Otherwise, the new user account would inherit all registry settings of the "default" user (including the the FixLogon entry ) and would not be accessible.

About the Author

has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links