Question

Difficulty: MediumWindows Administrative and System Management Tools

A systems administrator wants to automate a troubleshooting script so that it executes immediately whenever a custom application writes a critical error with Event ID 404 to the Windows System log. Which administrative tool provides the built-in capability to attach a task directly to a specific logged event?

  1. Event Viewer (eventvwr.msc)Answer
  2. B
    Performance Monitor (perfmon.msc)
  3. C
    Services (services.msc)
  4. D
    Task Manager (taskmgr.exe)

Answer

Event Viewer (eventvwr.msc) is the administrative tool that allows attaching an automated task directly to a specific logged event ID.
Event Viewer (eventvwr.msc) allows administrators to right-click any event entry in a log and choose 'Attach Task To This Event'. This launches a wizard in Task Scheduler that configures a trigger whenever that specific event source and Event ID occur.

Step-by-Step Solution

1
Identify the trigger requirement.
The requirement calls for executing a script automatically when a specific Event ID (404) is written to the System log.
This is an event-driven task trigger mechanism within Windows administration.
2
Evaluate the administrative tool capable of binding tasks to log entries.
Event Viewer (eventvwr.msc) provides the 'Attach Task To This Event' feature in its Actions pane, creating an automated Task Scheduler trigger linked directly to that event log entry.
Event Viewer natively integrates with Task Scheduler to automate responses to log events.

Key Concept

Attaching automated tasks to Windows Event Log entries using Event Viewer
Rate this question