Unlock a pc using group policy

Hello, I have users who lock their computers every night rather than logging off as we have requested. is there a group policy we can apply that says after a certain time of day...say 8:00pm log off anyone still logged in?
tkthelpdeskAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zalazarCommented:
There is no direct GPO but it's possible via a scheduled task item which you can create via a GPO.
https://technet.microsoft.com/en-us/library/cc725745.aspx
You can schedule the task to run a program called
"C:\Windows\System32\shutdown.exe"
At the specified time.
With the following parameters
/l /f

This will logoff the user and also close any unsaved work.
If you do not use the "/f" option or use "logoff.exe" any unsaved work will prevent the logoff to succeed.
McKnifeCommented:
That will logoff the account that starts the task. So you would have to have to deploy it as a user task, not a computer policy.
Venugopal NCommented:
Refer the link, which will give detail steps for configuring the schedule task , also it list the steps to trigeer a logoff message before it logoff the system.
http://blogs.technet.com/b/askds/archive/2010/08/24/forcing-afterhours-user-logoffs.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

McKnifeCommented:
Yep, that's it, exactly.
tkthelpdeskAuthor Commented:
Thanks
zalazarCommented:
Indeed as an "User Configuration" GPO
My suggestion was at least in the right direction but anyway...
The article is using logoff.exe and this won't force the logoff if the user has unsaved work as already mentioned.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.