Show Windows Service Control Manager errors
Build a paste-ready command, then review its compatibility and effects before running it.
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Service Control Manager'; Level=2} -MaxEvents 20 | Select-Object TimeCreated,Id,Messageread-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-20
RequirementsGet-WinEventGet-WinEvent must be installed and available on PATH.
Version supportGet-WinEvent Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsTimeCreated Id MessageRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-WinEvent: command not foundGet-WinEvent is missing or is not available on PATH.
VerifyGet-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Service Control Manager'; Level=2} -MaxEvents 20 | Select-Object TimeCreated,Id,MessageThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01Get-WinEventCommandRuns the Get-WinEvent stage of this one-liner.
02-FilterHashtableOptionConfigures Get-WinEvent with the -FilterHashtable option.
03@{LogName='System'ArgumentPasses @{LogName='System' to Get-WinEvent.
04;Command separatorEnds this shell statement before the next one begins.
05ProviderName='ServiceVariable assignmentSets a value used by the commands that follow.
06ControlCommandRuns the Control stage of this one-liner.
07Manager'ArgumentPasses Manager' to Control.
08;Command separatorEnds this shell statement before the next one begins.
09Level=2}Variable assignmentSets a value used by the commands that follow.
10-MaxEventsCommandRuns the -MaxEvents stage of this one-liner.
1120ArgumentPasses 20 to -MaxEvents.
12|PipelinePasses the output on the left to the command on the right.
13Select-ObjectCommandRuns the Select-Object stage of this one-liner.
14TimeCreated,Id,MessageArgumentPasses TimeCreated,Id,Message to Select-Object.
Example input
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Service Control Manager'; Level=2} -MaxEvents 20 | Select-Object TimeCreated,Id,Message
Example output
TimeCreated Id Message
----------- -- -------
7/24/2026 10:11:04 AM 7034 The Example API service terminated unexpectedly.
Illustrative output — exact values vary by system and data.
Official sources