From b0b41bbf1f5b1d1c57a31563bcf9fef2f7be174f Mon Sep 17 00:00:00 2001 From: Ram Kishor <100423546+Starepinjore@users.noreply.github.com> Date: Wed, 10 Jun 2026 13:25:48 -0400 Subject: [PATCH 1/2] Create frequent-system-reboot-detection.md - Frequent System Reboot Detection [128c7482-b535-40b5-912a-e44e2efb04f8] --- .../frequent-system-reboot-detection.md | 236 ++++++++++++++++++ 1 file changed, 236 insertions(+) create mode 100644 docs/cwa/monitors/frequent-system-reboot-detection.md diff --git a/docs/cwa/monitors/frequent-system-reboot-detection.md b/docs/cwa/monitors/frequent-system-reboot-detection.md new file mode 100644 index 000000000..9014dbbb4 --- /dev/null +++ b/docs/cwa/monitors/frequent-system-reboot-detection.md @@ -0,0 +1,236 @@ +--- +id: '128c7482-b535-40b5-912a-e44e2efb04f8' +slug: /128c7482-b535-40b5-912a-e44e2efb04f8 +title: 'Frequent System Reboot Detection' +title_meta: 'Frequent System Reboot Detection' +keywords: ['reboot', 'reboot-reason', 'recent-reboot', 'recent-reboot-reason', 'reboot-audit'] +description: 'This monitor tracks how often a computer restarts to identify machines that are experiencing instability or crash loops.' +tags: ['auditing', 'windows'] +draft: false +unlisted: false +last_update: + date: 2026-06-10 +--- + +## Summary + +This monitor tracks how often a computer restarts to identify machines that are experiencing instability, crash loops, or unexpected shutdowns. By default, it watches for any machine that has **restarted 5 or more times within a 24-hour period**. When a computer restarts this frequently, the monitor automatically creates a support ticket containing the exact reasons for each restart. + +> Note: While 5 reboots in 24 hours is the standard baseline, this threshold is fully flexible and can be modified if a different limit is required for your specific environment. + +## Dependencies + +- [Get-RecentRebootReason](/docs/711a44cb-a3af-49b7-b501-9ed088ba1d36) + +## Details + +**Suggested "Limit to"**: `All` +**Suggested Alert Style**: `Once` +**Suggested Alert Template**: `△ Custom - Ticket Creation - Computer` + +| Check Action | Server Address | Check Type | Condition | Interval | +|--------------|----------------|------------|-------------|------------| +| System | 127.0.0.1 | Run File | State Based | 900 | + +## Target + +- Managed Windows Servers +- Managed Windows Workstations + +## Ticketing + +**Ticket Subject:** `Frequent System Reboots Detected on %COMPUTERNAME%` +**Ticket Body:** `%RESULT%` + +**Sample Ticket Subject:** `Frequent System Reboots Detected on TEST_MACHINE` + +**Sample Ticket Body:** + +```PlainText +WORKSTATION-01 has rebooted 6 time(s) in the past 24 hour(s). + +Details: + +TimeCreated : 6/10/2026 4:41:11 PM +FormattedDate : 6/10/2026 4:41 PM +Id : 1074 +User : TestUser +Message : The process C:\WINDOWS\system32\wbem\wmiprvse.exe (TEST_MACHINE) has initiated the shutdown of computer TEST_MACHINE on behalf of user TestUser for the following + reason: No title for this reason could be found + Reason Code: 0x80070015 + Shutdown Type: shutdown + Comment: + +TimeCreated : 6/10/2026 3:25:55 PM +FormattedDate : 6/10/2026 3:25 PM +Id : 1074 +User : TestUser +Message : The process C:\WINDOWS\system32\wbem\wmiprvse.exe (TEST_MACHINE) has initiated the shutdown of computer TEST_MACHINE on behalf of user TestUser for the following + reason: No title for this reason could be found + Reason Code: 0x80070015 + Shutdown Type: shutdown + Comment: + +TimeCreated : 6/10/2026 2:47:44 PM +FormattedDate : 6/10/2026 2:47 PM +Id : 1074 +User : TestUser +Message : The process C:\WINDOWS\system32\wbem\wmiprvse.exe (TEST_MACHINE) has initiated the shutdown of computer TEST_MACHINE on behalf of user TestUser for the following + reason: No title for this reason could be found + Reason Code: 0x80070015 + Shutdown Type: shutdown + Comment: + +TimeCreated : 6/10/2026 1:58:55 PM +FormattedDate : 6/10/2026 1:58 PM +Id : 1074 +User : TestUser +Message : The process C:\WINDOWS\system32\wbem\wmiprvse.exe (TEST_MACHINE) has initiated the shutdown of computer TEST_MACHINE on behalf of user TestUser for the following + reason: No title for this reason could be found + Reason Code: 0x80070015 + Shutdown Type: shutdown + Comment: + +TimeCreated : 6/10/2026 12:57:00 PM +FormattedDate : 6/10/2026 12:57 PM +Id : 1074 +User : TestUser +Message : The process C:\WINDOWS\system32\wbem\wmiprvse.exe (TEST_MACHINE) has initiated the shutdown of computer TEST_MACHINE on behalf of user TestUser for the following + reason: No title for this reason could be found + Reason Code: 0x80070015 + Shutdown Type: shutdown + Comment: + +TimeCreated : 6/10/2026 11:29:18 AM +FormattedDate : 6/10/2026 11:29 AM +Id : 1074 +User : TestUser +Message : The process C:\WINDOWS\system32\wbem\wmiprvse.exe (TEST_MACHINE) has initiated the shutdown of computer TEST_MACHINE on behalf of user TestUser for the following + reason: No title for this reason could be found + Reason Code: 0x80070015 + Shutdown Type: shutdown + Comment: + +``` + +## Implementation + +### Step 1 + +Obtain the group ID(s) of the group(s) that the remote monitor should be applied to. + +### Step 2 + +Copy the following query and replace **YOUR COMMA SEPARATED LIST OF GROUPID(S)** with the group ID(s) for your target groups. Set the desired values for the `@lookbackWindowHours` and `@minimumRebootEventCount` variables as needed. +(The section to replace is at the very end of the query, immediately after **WHERE**.) + +```sql +SET @lookbackWindowHours = '