Reboot Notification


Taliseian

Well-known member
Power User
VIP
Local time
1:56 AM
Posts
280
OS
Windows 11 Pro 25H2 (26200.8457)
Greetings all,

Just recently I fell asleep in the room my computer is in - hey, I'm old and sometimes the gaming itch doesn't go away :P - and woke up to my monitor resetting after a system restart.

System is fine as the reboot was caused by Windows Update (W11 update to 26200.8117), but it took me a bit to comb through my Event Viewer and see the Informational entry about Windows Update.

I'm sure this has happened before, but it got me thinking. Is there a way to let the user know any system details about why the reboot happened, if it knows any of course. Something like a popup or a notepad text that could appear once the system is back to the desktop or maybe a way to get a text/email notification about the reboot and why?

...just a thought from an old man sipping his coffee and debating on getting another gaming session in at way too early-o'clock..... :P
 
Windows Build/Version
Windows 11 25H2 - 26200.8117

My Computer

System One

  • OS
    Windows 11 Pro 25H2 (26200.8457)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Pre-built
    CPU
    AMD Ryzen 7 7800X3D
    Motherboard
    MSI Pro B650-VC WiFi
    Memory
    32gb Team Group (T-Force) DDR5-6000
    Graphics Card(s)
    Zotac nVidia GeForce RTX 4070 SUPER - 12gb
    Sound Card
    Sound BlasterX G6
    Monitor(s) Displays
    Koorui G2421V and ViewSonic VX2453
    Screen Resolution
    P:2560x1440 S:1920x1080
    Hard Drives
    WD Blue SN5000 - 500gb NVME
    WD Blue SN580 - 2TB NVME
    Seagate 4TB HDD - ST4000VN008-2DR166
    Keyboard
    Mountain Everest
    Mouse
    Logitech G502 Hero
    Internet Speed
    T-Mobile Home Internet
    Browser
    Firefox
    Other Info
    QNAP TS-469 Pro NAS
    TP-Link W7200 (2 unit mesh network)
    Elgato Streamdeck
Somewhere in event viewer it should tell you.

Screenshot 2026-04-01 091552.webp
 

My Computers

System One System Two

  • OS
    Windows11 Pro 26200.8655
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Alienware Aurora R16
    CPU
    Intel Core i9 14900F (24 -Core, 68 MB Total Cache)
    Motherboard
    Dell Alienware
    Memory
    32GB DDR5
    Graphics Card(s)
    RTX 4080 Super w/581.95
    Sound Card
    Realtec
    Monitor(s) Displays
    Corsair XENEON 32QHD165
    Screen Resolution
    2560 X 1440
    Hard Drives
    1-2TB Samsung 990 Pro PCIe NVMe M2 SSD
    1-4TB Samsung 990 Pro PCIe NVMe M2 SSD
    PSU
    1000 Watt Platinum Dell
    Case
    Alienware
    Cooling
    Liquid Closed Loop
    Keyboard
    Corsair Strafe RGB
    Mouse
    Logitech MK270 Wireless
    Internet Speed
    100Gb's Down-20 Up
    Browser
    Firefox 151.0.4
    Antivirus
    Defender
    Other Info
    Very Quiet And Fast
    CyberPower UPS CP1500PFCLCD
  • Operating System
    PClinuxOS Mate (2025.7)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel
    CPU
    13th Gen Inter(R) Core(TM) i3-1315U
    Motherboard
    Intel
    Memory
    64 GB DDR4 @3200 MHz.
    Graphics card(s)
    Internal
    Sound Card
    None
    Monitor(s) Displays
    Dell 2419HGCF
    Screen Resolution
    1920 X 1080
    Hard Drives
    SAMSUNG 980 PRO SSD 2TB, PCIe 4.0 M.2 2280
    PSU
    Chicony 30 Watt
    Case
    Small
    Keyboard
    Dell
    Mouse
    Razor
    Internet Speed
    1GB
    Browser
    Slimjet
Powershell:

Code:
Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 41, 1074, 6006, 6605, 6008; } | Format-List Id, LevelDisplayName, TimeCreated, Message

If you really want it in notepad, you can output the results to a .txt somewhere.

If you want it to ^ do that automatically at logon, use task scheduler.
 

My Computer

System One

  • OS
    Windows 11 Pro
Blogged about this very thing this morning. The minor build # 8117 is a dead giveaway: you got the OOB update last nite, just like I did. Here's the post OOB KB5086672 Pops Up.
HTH,
--Ed--
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo X380 Yoga
    CPU
    i7-8650U (8th Gen/Kaby Lake)
    Motherboard
    20LH000MUS (U3E1)
    Memory
    16 GB
    Graphics Card(s)
    Intel UHD Graphics 620
    Sound Card
    Integrated Conexant SmartAudio HD
    Monitor(s) Displays
    FlexView Display
    Screen Resolution
    1920x1080
    Hard Drives
    Toshiba 1 TB PCIe x3 NVMe SSD
    external 5TB Seagate USB-C attached HDD
    PSU
    Lenovo integrated 65W power brick
    Case
    Laptop
    Cooling
    Laptop
    Keyboard
    Integrated Lenovo ThinkPad keyboard
    Mouse
    touchscreen, touchpad
    Internet Speed
    GbE (Spectrum/Charter)
    Browser
    all of em
    Antivirus
    Defender
    Other Info
    Purchased early 2019 as Windows Insider test PC
  • Operating System
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY
    CPU
    Ryzen 5800X
    Motherboard
    Asrock B550 Extreme4
    Memory
    128 GB (4x32 DDR5-5600)
    Graphics card(s)
    NVIDIA 3070Ti
    Sound Card
    built-in
    Monitor(s) Displays
    2xDell 2707
    Screen Resolution
    1980x1200
    Hard Drives
    2XNVMe, multiple HDDs from 3 to 12 TB
    PSU
    Seasonic 650
    Case
    NZXT Flo 6
    Cooling
    dual-fan air cooler
    Keyboard
    Logitech Wave
    Mouse
    Logitech Logi
    Internet Speed
    GbE
    Browser
    all of 'em
    Antivirus
    Defender
    Other Info
    temperamental UEFI
here, had some extra time:

save this as a .ps1 (use ISE to do so)

Code:
# Generate timestamp for the file name
$timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm-ss"

# Build the output file path on the user's Desktop
$desktopPath = [Environment]::GetFolderPath("Desktop")
$outputFile = Join-Path $desktopPath "Power Cycle Causes ($timestamp).txt"

# Collect the event logs
$events = Get-WinEvent -FilterHashtable @{
    LogName = 'System'
    Id      = 41, 1074, 6006, 6605, 6008
} | Format-List Id, LevelDisplayName, TimeCreated, Message | Out-String

# Write results to the file
$events | Out-File -FilePath $outputFile -Encoding UTF8

# Optional: Display where the file was saved
Write-Host "Report saved to: $outputFile"

you can then run the ps1 at logon or manually. it will output to
Power Cycle Causes (Current Date) (Current Timestamp).txt
 

My Computer

System One

  • OS
    Windows 11 Pro
If you want it to pop up in a window, you could use Out-GridView. Works all of the time with PowerShell 7. Also works with Windows PowerShell 5.x, but you have to have the ISE installed.

Powershell:
# Collect the event logs
Get-WinEvent -FilterHashtable @{
    LogName = 'System'
    Id      = 41, 1074, 6006, 6605, 6008
} | Out-GridView -Title 'A Fancy Title Here'

View attachment 167526
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Core i7-1260P
    Motherboard
    NUC12WSBi7
    Memory
    64 GB Micron PC4-25600
    Graphics Card(s)
    Intel Iris Xe Graphics
    Sound Card
    on-board Realtek HD Audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Crucial MX500 2 TB
    Antivirus
    Microsoft Defender
I heard you like on-screen notifications!!

This batch file creates a Windows notification message that pops up right after your first desktop logon after a reboot. If you missed reading the message, it stays in the taskbar's Notification cache. You will only get notified on your first logon, not get bothered again until another reboot.

Windows 11 x64-2026-04-02-21-18-14.webp

1. To install the scheduled task, run the included batch file.

2. To remove the task, run as Admin:
Code:
schtasks /delete /tn NotifyLastReboot /f

Developer notes: I removed Event ID 6006 since it wasn't useful, and blocked the really interesting event ID's.
 

Attachments

Last edited:

My Computer

System One

  • OS
    Windows 7

Latest Support Threads

Back
Top Bottom