Skip to main content

IdleMon Report Globals

Summary

The script collects the idle time of the user(s) logged on to a Windows machine. The data is then stored in a custom table for the number of days specified in the global variable ThresholdDays.

It uses the IdleMon tool to fetch the data.

The tool must be placed in the Utilities folder at LTShare//Transfer on the Automate Server/WebDav.

The logged-in user must re-login after installing the tool. The script will install the tool on the first run, and then the user must re-login; otherwise, it will not be able to collect data.

Sample Run

Sample Run

Schedule the script to run periodically against the computer to monitor.

Dependencies

The IdleMon tool must be placed in the Utilities folder at LTShare//Transfer on the Automate Server/WebDav.

Variables

NameDescription
TableNamepvl_report_idlemon
ProjectNameIdleMon
WorkingDirectoryC:/ProgramData/_automation/Application/IdleMon
returnstringOutput returned by the script
DeleteStatementSQL query to execute to remove stale data from the custom table
InsertStatementSQL query to execute to insert the data gathered by the script into the custom table

Global Parameters

NameExampleRequiredDescription
ThresholdDays2TrueNumber of days to store data in the custom table

Output

  • Script log
  • Dataview