Soru

Zorluk: ZorWindows Administrative and System Management Tools

A systems administrator is troubleshooting a Windows 11 Pro workstation where a critical line-of-business service intermittently stops unexpectedly. The administrator needs to configure the system to automatically attempt to restart the service on the first two failures, and execute a custom cleanup script located at C:\Scripts\reset_app.bat if a third failure occurs. Which of the following administrative utilities should the administrator use to configure these specific failure response actions directly?

  1. Services console (services.msc), by editing the Recovery tab properties of the target serviceCevap
  2. B
    Task Scheduler (taskschd.msc), by attaching a new task trigger to the System Event Log for event ID 7036
  3. C
    Performance Monitor (perfmon.msc), by setting up a User Defined Data Collector Set with a counter alert action
  4. D
    System Configuration (msconfig.exe), by modifying startup parameters under the Services tab

Cevap

The Services console (services.msc) via the Recovery tab in the properties of the service.
The Services snap-in (services.msc) includes a Recovery tab inside each service's properties dialog. This tab allows system administrators to configure specific sequential actions when a service crashes, such as restarting the service on the first and second attempts and executing a custom program or script on subsequent failures.

Adım Adım Çözüm

1
Identify the administrative tool responsible for individual service property settings.
The Windows Services console (services.msc) provides full administrative management over system background services.
Service-specific behavior and failure handling are built into the Service Control Manager database managed via services.msc.
2
Locate the specific configuration tab within the service properties.
Open the properties of the target service and select the Recovery tab.
The Recovery tab explicitly defines actions for 'First failure', 'Second failure', and 'Subsequent failures'.
3
Configure the required failure responses.
Set First failure and Second failure to 'Restart the Service', and set Subsequent failures to 'Run a Program' pointing to C:\Scripts\reset_app.bat.
This directly fulfills the operational requirement for multi-stage automated recovery without third-party tools or complex external scripting.

Anahtar Kavram

Configuring Service Failure Recovery Actions in Windows Services Snap-in
Tahmini Süre:2m 0s
Bu soruyu puanla