PdfPrep.com

What should you do?

You have a server named Server1 that runs Windows Server 2016.

The server has an application named App1. App1 writes entries to the Application event log when errors are encountered. The events have IDs of either 111 or 112. You need to restart the service whenever either of these events is logged.

What should you do?
A . From Windows PowerShell, run the Write-EventLog cmdlet and specify the-EventID parameter and the -Source parameter.
B . From Event Viewer, create a custom view that has a filter for the event IDs.
C . From Event Viewer, create a subscription that has a filter for the event IDs.
D . From Task Scheduler, use Create Task to create one task that includes triggers for both event IDs.
E . From Windows PowerShell, run the Get-SMServerEvent cmdlet and pipe the output to the Start-NetEventSession cmdlet.
F . From Performance Monitor, add an Event Trace Session data collector that uses the Microsoft­Windows-Eventlog provider.

Answer: D

Exit mobile version