Windows 10: Disable log-off while account is locked. Solved

Page 1 of 2 12 LastLast
  1.    06 Aug 2016 #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 ComputerSystem Spec

  2.    07 Aug 2016 #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 ComputerSystem Spec

  3.    07 Aug 2016 #3

    There's no errors in Reliability History. In event log I've got something like:
    Click image for larger version. 

Name:	Event Log.png 
Views:	0 
Size:	19.1 KB 
ID:	94695

    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 ComputerSystem Spec

  4.    07 Aug 2016 #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 ComputerSystem Spec

  5.    07 Aug 2016 #5

    So that's what I found:
    Click image for larger version. 

Name:	EventLog v2.png 
Views:	1 
Size:	17.8 KB 
ID:	94723

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

  6.    07 Aug 2016 #6

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

  7.    07 Aug 2016 #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 ComputerSystem Spec

  8.    08 Aug 2016 #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:
    Click image for larger version. 

Name:	Snap 2016-08-08 at 09.20.12.jpg 
Views:	20 
Size:	31.6 KB 
ID:	94874
      My ComputerSystem Spec

  9.    08 Aug 2016 #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 ComputerSystem Spec

  10.    08 Aug 2016 #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 ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
locked out of win10 using MS account in User Accounts and Family Safety
hi all i have recently upgraded from Win8.1 to Win 10 and I used the MS account to login but now it does not let me login anymore, i did a pw reset for my MS account already and can login to my MS account from any device but the message showing...
I am currently on a different computer than the one where I am locked out of the Administrator account. Less than 3 weeks ago, I bought a new laptop that came with Windows 10 installed. When I finally set up the new laptop and tried out Windows...
So the other day I noticed my only account on my laptop had lost administrator privileges. I looked up how to fix this and went about doing. I booted into "safe mode with command prompt" but that realized I didnt need that, just regular safe mode. I...
Domain Account Locked Daily in Network and Sharing
I'm running Windows 10 Build 10162 and about 2-3 times a day I have to get my domain account unlocked in Active Directory. Has anyone experienced this before? I'm definitely not typing the incorrect password enough times to get locked out. I...
Solved Windows Update has locked out Admin account in User Accounts and Family Safety
The admin account on a single user machine which did not require a password to logon has been changed by an update this week to require a password which of course does not exist. The question is how can the Admin account be reset to allow access....
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 01:57.
Find Us