Comments (11)
How about creating a scheduled task? You can deploy that through GPO as well.
from idle-logoff.
What would be the trigger?
from idle-logoff.
Smooley, you set your parameters in the scheduled task (i.e. time/date). You don't need AD at all. You could however, use GPO to push out the scheduled task.
For example:
Trigger: Daily at 3:00 PM Recur every 1 day
start a program
Point to program that will auto-log-out user
done
from idle-logoff.
But I want the logout time to be tied to the AD Logon hours of the account. So when their AD Logon hours expire, they are forcibly logged off their workstation.
from idle-logoff.
You could create separate GPOs for different schedules, i.e. task schedules
One set of users:
Trigger: Daily at 3:00 PM Recur every 1 day
start a program
Point to program that will auto-log-out user
Second set of users:
Trigger: Daily at 5:00 PM Recur every 1 day
start a program
Point to program that will auto-log-out user
done
from idle-logoff.
The other way you can do this is on the server side.
I shutdown computers daily and weekly via calling a simple batch file from my server.
Example:
shutdown -s -f -m \\mpltw.arps.local
The time and dates can be whatever I choose them to be and I can have multiple combinations on the same server.
from idle-logoff.
Thanks for the suggestions, but none of this accomplishes what I am trying to achieve. Which is log a user off when their Active Directory Logon Hours expire.
from idle-logoff.
Smooley, I'm a little confused because when you set the AD hours it will automatically disconnect the session at the time specified. The only thing you are accomplishing is casing the computer to logoff, which in itself is not useful. So, why can't you have a general script to logout all computers at the end of the day or when idle?
from idle-logoff.
SMB sessions are disconnected, but the user is still logged on and able to continue using the workstation past their logon hours for anything local and web browsing. Management want them off. Even if they time out or disconnect, tasks are still running that are continually trying to access things on the network that cause tons of failed logon attempts in my siem. So, in this case, a forced logoff is not only useful, it is the only way to accomplish want we want. A forced idle logout won't work because they could be idle for extended periods during their allowed logon hours and that is fine. A general script to log them off at the end of the day wont work because they have different schedules.
from idle-logoff.
The only way you're going to accomplish this is via GPO. If you figure out another way. Let me know. Good luck!
https://blogs.technet.microsoft.com/askds/2010/08/24/forcing-afterhours-user-logoffs/
from idle-logoff.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.
from idle-logoff.
Related Issues (20)
- how to handle when a computer goes to sleep HOT 9
- Terminal Servers
- How does this work with user switching HOT 4
- controlling the GPO from serves side ? HOT 2
- Process not starting for users HOT 2
- Can we deploy settings using Intune instead of GPO? HOT 2
- Add mail notification to sysadmin HOT 1
- lithnet idlelogoff not working HOT 3
- Is not working ? HOT 6
- I'm sorry
- Launch via cmd line without invoking GUI HOT 5
- Intune - Upload admx and adml files HOT 3
- Can it achieve logout from the lock screen state? HOT 1
- Error: Object reference not set to an instance of an object HOT 6
- Install not observing parameters HOT 4
- Shutdown from Login UI HOT 3
- NO_ACTIVE HOT 2
- How do I apply this application to a specific user, or user group HOT 2
- Windows 11 pro GPO > HOT 2
- Tracking if logoffs are made by the app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idle-logoff.