5
I created a powershell script that I want to run on every logout / restart / shut down.
For trigger I set a custom event: Log: System, Source: Winlogon, Event ID: 7002. I found the above event id somewhere on the internet - it stands for log out (AFAIK).
The problem is that it works only when I go and press Log Out. It doesn't when I want to Shut down or Restart the PC.
Should it even work? And if not, where can I find the other event ID's? How do I even look for them? (I mean what is their name?)
What is the script supposed to do? – and31415 – 2014-02-13T16:29:01.143
It deletes files. – Martin Fejes – 2014-02-13T18:24:21.233