Disable log-off while account is locked.

Page 1 of 2 12 LastLast

  1. Posts : 7
    Windows 10
       #1

    Disable log-off while account is locked.


    I'm using Windows 10 Enterprise. When I leave my computer I lock it using the windows key + L. After some time when I unlock the account I see that my account was logged off and I lost all my running programs (everything just restarted). It also happens when I log in using Remote Desktop, exit it (not logging off) and then coming back after like 1-2 hours.
    Is there anything I can do to prevent that happening?
      My Computer


  2. Posts : 34,915
    Win 10 Pro (1903) (2nd PC is 21H2)
       #2

    Hi, suggest you have a look at your Reliability History and see if anything is being recorded around the times of interest. Are you sure your PC logged off rather than restarted? E.g. after a BSOD?
      My Computers


  3. Posts : 7
    Windows 10
    Thread Starter
       #3

    There's no errors in Reliability History. In event log I've got something like:
    Disable log-off while account is locked.-event-log.png

    Errors here doesn't seem to be connected with the problem. I belive they're just thrown, because service is being stopped by log-off.
      My Computer


  4. Posts : 34,915
    Win 10 Pro (1903) (2nd PC is 21H2)
       #4

    Suggest checking for event id 6005 or 6006 in the appropriate time periods. If you got that, your PC restarted.

    Log off: might be 4647 (user initiated); 4634 (An account was logged off); 538: (User Logoff)
    When you've confirmed it wasn't a restart, note these- assuming you find them.

    Have a look at the times at which the event occurred - is there any consistency?

    Could it be some scheduled task? An auto shutdown type of program?

    See:
    Solved Windows 10 10130 logging off on inactivity? - Windows 10 Forums

    It's always worth searching the forum. You may well find more threads on this if you do so.
      My Computers


  5. Posts : 7
    Windows 10
    Thread Starter
       #5

    So that's what I found:
    Disable log-off while account is locked.-eventlog-v2.png

    It logs me out after 2 hours of disconnecting from remote desktop.
      My Computer


  6. Posts : 34,915
    Win 10 Pro (1903) (2nd PC is 21H2)
       #6

    Have you read #10 and around there in the link I posted?
      My Computers


  7. Posts : 7
    Windows 10
    Thread Starter
       #7

    Sorry. Don't know how I missed the link...
    There were no restarts/shutdowns lately. Last shutdown was made 18.07.2016 by myself, so that's not the case. Also didn't find any events that You provided. Only those which I found.
      My Computer


  8. Posts : 34,915
    Win 10 Pro (1903) (2nd PC is 21H2)
       #8

    Hi, so am I correct in thinking the log off occurs rather randomly and may not occur at all sometimes? (A consistent pattern is usually easier to identify)

    What is then puzzling as you didn't find those event ids is what sort of event is actually occurring. Assuming a normal process is occurring, there should be a corresponding event log entry.

    To identify the time when your PC logs off (or whatever it's doing) so you can inspect the event log at that time, try creating a very simple log, e.g. writing the time to a file every minute. So when you find the PC has logged off/whatever you can then note the last time and inspect the event log accordingly.

    Many people have reported issue with sleep: either going to sleep or resuming.

    If you wished to try preventing some of these events as an experiment, you could try this free program:
    Disable log-off while account is locked.-snap-2016-08-08-09.20.12.jpg
      My Computers


  9. Posts : 7
    Windows 10
    Thread Starter
       #9

    No, no, no. It's not random. It always logs me off 2 hours after disconnecting from Remote Desktop as shown in post #5. I don't know if You missed the screenshot or it doesn't show for you, but it's there.
      My Computer


  10. Posts : 34,915
    Win 10 Pro (1903) (2nd PC is 21H2)
       #10

    You said 'There were no restarts/shutdowns lately.' so I wondered if that meant it had stopped happening you see. Anyway, I've suggested a way you might be able to find a related event in the log..hence the event id. So far you can't identify a related even id.

    Is it log off or restart? If not, then what?

    Beyond that it's elimination.
    - does it happen in safe mode
    - does it happen after a clean boot
    - does it happen if you disable all scheduled tasks

    etc... reach a point when it's not happening, and enable progressively or examine what's been disabled.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:04.
Find Us




Windows 10 Forums