I want to trigger an action/task when an event is raised in any computer of the domain.
It this possible via GPO, do or I need to deploy script to all machines on the domain?
You are talking about event based tasks in task scheduler.
Yes, it is possible to deploy them through a GPO. They require Vista or later. You will need to use GPP (Group Policy Preferences).
In the Group Policy Management Console (gpmc.msc), edit or create a GPO, navigate to Computer Settings > Preferences > Control Panel Settings > Scheduled Tasks Create a new Scheduled Task (Windows Vista and later)
Here you can create an event based scheduled task just like you would in the normal task scheduler. The crucial part is to choose the right trigger type on the Triggers tab. You should create a trigger and set it to Begin the task: On an event and select which events to trigger on.
You will also need to make sure the machines have access to the script. Either by sharing it somewhere on the network or by copying it to the local disk on the clients, perhaps using the GPP Files function in the same GPO.
Edit: I just realized the question is really old and probably not relevant anymore. It had only been updated by HopelessN00b
Well, you can't have GPOs that are triggered by an event. GPOs are basically just registry keys, so they're either one value or another. So you need a script (of some sort) that can be triggered when you event pops up.
There are a few ways I can think of to do this that don't involve a lot of horrible manual copying.