Solved

Force logoff after certain hours through group policy

Posted on 2009-07-03
2
478 Views
Last Modified: 2012-05-07
Hi,

Is there a way through group policy to add a scheduled task that forces users to logoff at a certain time each night? I was able to create a .cmd script and put that in group policy. It is in the code section of this question. It didn't work. In event viewer there is an error that reads: The At2.job command failed to start due to the following error:
The system cannot find the file specified.

Any ideas?
at 22:00 /EVERY:M,T,W,Th,F,S,Su "shutdown -r -f -t 60 -c "Please close all programs - this PC will now restart"

Open in new window

0
Comment
Question by:trent_shane
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Britt Thompson earned 250 total points
ID: 24772668
set the group policy: Network security: Force logoff when logon hours expire under Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\

Then, in AD user properties goto Account >> Logon Hours and set the time the user is allowed to be logged in...

GPUPDATE /force afterwards and you should be all set.
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a hurry?.. scroll down to "HERE's HOW TO DO IT" Section. Greetings All, I was going to post this as question/solution, but its seems more appropriate as an article considering its length.  I felt it important to illucidate all the details c…
Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question