This is not a full answer but a hint.
You can create new tasks with right-click to computer and 'manage' (admin). The image shows what I found where events can be used to trigger userdefined scripts. Sadly I do not know which event can be used of if it is any event of the ones shown below. Just so that you know. Maybe other people know.