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?
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.
0
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.
0
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
0

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

McKnifeCommented:
Yep, that's it, exactly.
0
tkthelpdeskAuthor Commented:
Thanks
0
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.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.