Solved

Force logoff after certain hours through group policy

Posted on 2009-07-03
2
441 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
2 Comments
 
LVL 30

Accepted Solution

by:
renazonse 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

My purpose is to describe the basic concepts of virtual memory as implemented in a modern Windows-based operating system. I will also describe the problems inherent in older systems and how virtual memory solves them. The dark ages - before virtu…
This article describes how to set permissions to allow a limited-permissions user to start and stop a particular System Service.   It is always best to give users only the permissions that they need to perform their job, so tweaking particular permi…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now