2

I am looking for a way to record when certain programs have been executed.

For instance, if Microsoft Word has been started I would like to write out a time and date stamp along with the program name.

The output I get. I may change it to an Excel spreadsheet. Just need a little guidance on where to look to capture user run programs.

gunr2171
  • 16,104
  • 25
  • 61
  • 88
JMJ
  • 35
  • 6

1 Answers1

1

It looks like you want to use the ManagementEventWatcher

example

msdn

As for creating an excel spreadsheet from data, you can easily find code for that.

like this

Community
  • 1
  • 1
Jonesopolis
  • 25,034
  • 12
  • 68
  • 112
  • Jonesy, Perfect. exactly what I was looking for. Thanks also for the extras. Much appreciated. All of my searches on here didn't turn up ManagementEventWatcher. -J – JMJ Jul 17 '13 at 13:21
  • Awesome. I didn't even know about it till I did some research for your question. Handy to know. – Jonesopolis Jul 17 '13 at 13:25
  • Also, if my answer did help you, I'd very much appreciate it if you marked it as the selected answer – Jonesopolis Jul 17 '13 at 13:28