Can I Create a Script to Log User Activities Like Login and Idle Time?

0
28
Asked By CuriousCat99 On

I'm wondering if anyone knows how to create a script that can log user activities such as logging in and out, locking and unlocking screens, and tracking idle time (for example, if the user is idle for 30 minutes). Management prefers not to use dedicated time-tracking software saying it would be a hassle for employees. Instead, they want a simple solution that logs these activities in a PowerShell script. The goal is to verify claims of overtime by checking the log files. Is this feasible, and how might it be implemented without being overly intrusive?

5 Answers

Answered By CynicalWorker On

Classic case of management wanting to micromanage without investing in appropriate software! If they really want to check on staff, they might need a better solution than homemade scripts. Some time-tracking programs exist that aren't super invasive, and they might better suit your needs without causing too much friction.

Answered By RealisticDeveloper On

Totally possible if you want it to be simple. Keep in mind, storing these logs on each local machine might be an easier route than trying to centralize everything, but make sure to consider the implications of file tampering and proof of integrity!

Answered By SkepticalTechie23 On

Just a heads up, diving into this might lead to trouble. I suggest not pulling IT into HR issues unless it's part of an investigation. But if management insists, tracking logon and lock events via the Event Viewer could be a base start. You'll need something custom for tracking idle time—maybe check out user32.dll for tracking inactivity during your script runs.

Answered By PracticalJonathan On

Just remember, idle time doesn't accurately capture productivity. Users often need to watch lengthy training videos or attend meetings. It's tricky to measure actual work based solely on logged idle time.

Answered By TechSavvyRon On

Look into tools like ConnectWise/ScreenConnect. They can log user activity and allow remote access without constant monitoring of screens. Maybe that can strike a balance between monitoring and privacy.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.