If you wanted it to lock the workstation after 30 seconds of no activity this would do the trick If you wanted a user to get booted off after 5 minutes (300 Seconds) of no activity, You would call it like this: Timeout - The number of idle seconds before the action is takenĪction - You can lock, log the user off, shutdown or restart the workstation. Here is how it works, you call the program like this: So I had the team build a little app that would just logoff or lock idle users. Locking the workstation for this situation is bad too – since it makes it so the customer cannot use the machine.ĭid some googling and found some hacks that used chopped up screen savers that would activate, and then call some logoff code.ĭidn’t like that. If one of the technicians walks away, it leaves the system wide open. In her case she needs it for public facing kiosks. Then boom the forced logoff happens and their document is gone. I spoke with Tracy further to explain that forcing a logoff could cause data loss.įor example, a user has a Word document open and they walk away. Is there any easy way to logoff a user when they are not active for say, 15 Minutes?” Love all the tools and tips you keep sending our way. I thought this was a really clever solution, exploiting the ability to trigger a program based on events in the event log.“Hi Steve. The /l option triggers a logoff, and the /f option forces the logoff, so the user cannot block the logoff by, say, leaving an unsaved Notepad document on screen. When event 4802 (“The screen saver was invoked”) occurs, we launch the shutdown.exe process with the /l /f command line. We specify that we want audit events to be logged for successful Logon/Logoff events. This exploits the ability to trigger a process to run based on an entry in the event log.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |