Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just wondering if there is any way of logging a list of programs that have been run during the day (perhaps using WMI)? I'd like to write up a script that can do this.

E.g. I want to be able to see what programs users have been running each work day (for instance say a user never actually opened their work related programs, I want to be able to see this).

share|improve this question
up vote 1 down vote accepted

The simplest method is to turn on process auditing, via MMC:

Local Security Settings > Local Policies > Audit Policy

then set Audit process tracking" to "Success, Failure", and apply.

This will fill your event log (Security) quite quickly, so make sure to configure it as needed. Process creation and exit are logged with event IDs 592 and 593 respectively. The PID, user, domain and full process name are logged too. It should be simple enough to access that data via WMI, or you can filter and export to text or XML with wevtutil.

You may also be able to use MS Applocker to audit application use.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .