Link to home
Start Free TrialLog in
Avatar of tech-gineer
tech-gineer

asked on

Windows 7 log off user when computer is locked

Hi Experts,

I am facing this strange issue where Windows 7 log off the connected users when the computer is locked.

Basically if i log in and then lock the computer and come back after 2 or 3 days to log back in my account is no longer locked, I have to login fresh and all the settings again gets applied.  Any running programs are also closed.

I have try searching everyone but I cant seem to find a solution.

I have change power settings to never put the computer to sleep / no hibernation /  high performance
I have also unchecked the NIC power setting to  "not turn off this devices to save power"

Your help is appreciate .

thanks,
Avatar of steve_fernandes
steve_fernandes
Flag of Canada image

Check to see if there is a scheduled task that is performing a shutdown command with the reboot option somewhere,

shutdown -r

You can also open a command prompt and then type in:

syteminfo |findstr "Up Time"


This will give you the last time the system was rebooted. It might give you some insight as to if the machine is being restarted etc. From there it will be a process to troubleshoot as to why this is happening, i.e either script, hardware issue causing a restart or whatever voodoo magic is happening.

Just a train of thought. Good luck.
ASKER CERTIFIED SOLUTION
Avatar of tmoore1962
tmoore1962

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zac Harris
Hello

When you lock the computer, does the screensaver ever start? If so, make sure you go into the settings for the screensaver and uncheck the box beside on resume display logon screen. If you don't have the screensaver enabled, please let me know and in the mean time, I will continue to work with my system to see if I can replicate the issue.
Along the lines of the scheduled task option you may also want to look to see how MS updates are handled.  If set to automatically download and install you may want to change it to download but let you decide when to install.
Avatar of tech-gineer
tech-gineer

ASKER

Hi to All,

Tmorre1962 - The computer is in a domain and has enable the connection time limit.  I believe this might be the problem because I tend to login via RDP.

Below are the 2 settings that apply.

--Set time limit for disconnected sessions  ---- Enabled ---- 1 day
--Set Time limit for active but idle Remote Desktop services --  enable --- 5 days

Now,  How can I block this setting to not apply to this specific computer?   I tried changing the computer local group policy but is not taking effect.

Zac - I don not have the screen saver enable.   It seems to me that my issue is with the connection time limit.

thanks in advance Experts .
You could kindly ask the domain admin for a user exception policy gpo for those two settings for your username. Chances are they will ask for a business case. Or if you are the domain admin, just ensure you don't violate company security policy.


Gpos overwrite a lot of the local security policies by default every 15 minutes. It's what allows for administrative control and a manger environment in the enterprise.

Other options would be to have gpo exception container policy created.
Were those settings done in Terminal Services Configuration?  Those will apply to everyone that connects.  If you want to apply based on user then you need to use the User or Computer Configuration GPO.

MS explanation of these policies: https://technet.microsoft.com/en-us/library/cc753112(v=ws.10).aspx
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
It was a session timer GPO policy preventing the OS to keep me logged.

Thanks,