none
Forced automatic logoff after logging on with new user RRS feed

  • Question

  • Hi,

    I'm having a bit strange issue on one laptop (HP 6440b) running Windows 7 Professional. Problem is logging in with a user that doesn't have administrative rights, once i try to log on with a regular user it automatically logs me off after logon.

    Problem occurs on both domain and local accounts. This problem occurs only on one computer in the domain and there are no special policys applying to it. There's no real errors on the eventvwr logs, just notifications of logon and logoff.

    Anyone have any ideas what might be causing this?

     


    Triuvare Oy www.triuvare.fi
    Thursday, February 17, 2011 10:03 PM

Answers

  • Hi,

     

    Thanks for posting in Microsoft TechNet forums.

     

    This issue occurs if the Userinit key in the Windows registry has been modified.  Please follow these steps:

     

    1. Log on the computer as an administrator.

    2. Start Registry Editor, locate the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

    3. In the right pane, right click Userinit – Modify.

    4. In the Value data box, type hard_disk:\Windows\System32\userinit.exe  (hard_disk refers to the disk on which Windows 7 is installed), Click Ok.

     

    Note: Before you change the registry, please backup the original key in case of unexpected issue. Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved.

     

    Best Regards,

    Miya Yao

    TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tngfb@microsoft.com


    This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by Triuvare Friday, February 18, 2011 12:45 PM
    Friday, February 18, 2011 3:40 AM
    Moderator

All replies

  • Hi,

     

    Thanks for posting in Microsoft TechNet forums.

     

    This issue occurs if the Userinit key in the Windows registry has been modified.  Please follow these steps:

     

    1. Log on the computer as an administrator.

    2. Start Registry Editor, locate the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

    3. In the right pane, right click Userinit – Modify.

    4. In the Value data box, type hard_disk:\Windows\System32\userinit.exe  (hard_disk refers to the disk on which Windows 7 is installed), Click Ok.

     

    Note: Before you change the registry, please backup the original key in case of unexpected issue. Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved.

     

    Best Regards,

    Miya Yao

    TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tngfb@microsoft.com


    This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by Triuvare Friday, February 18, 2011 12:45 PM
    Friday, February 18, 2011 3:40 AM
    Moderator
  • Thanks a million! This solved the problem.

    Reason why it initially did even occure was HP ProtectTools... damn that crappy software, ain't the first time it's causing some problems.

    In the userinit there was this after the normal userinit.exe: ,c:\Program Files\Hewlett-Packard\HP ProtectTools Security Manager\Bin\DPAgent.exe

    Br,
    Timi Rantanen
    Triuvare Oy


    Triuvare Oy www.triuvare.fi
    Friday, February 18, 2011 12:45 PM
  • You’re welcome. Glad to hear the issue is solved.

     

    Best Regards

    Miya Yao

    TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tngfb@microsoft.com

     

     

     


    This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Monday, February 21, 2011 2:40 AM
    Moderator
  • Hi, Miya

    thanks for your post this has solves my problem too as it seems some malware has modified the userinit.exe string value by latching on to the registry key and extending it to some other program.

    Saturday, August 8, 2015 9:36 AM
  • Hi,  Hope you are doing alright

    Thanks for posting in Microsoft TechNet forums.

    there is very simple solution if you accidentally disable your Hard_Drive by any program like Kaspersky, other Antivirus programs, etc.

    you need to enable your Hard_Drive from Device Manager in your Kaspersky setting.

    Hope it will solve your problem.

    Kindest Regards

    Arman K

    Saturday, October 28, 2017 6:59 AM