PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Kernel-Power 41, unexpected shutdown 6008 and BugCheck 1001 events.
1Get-WinEvent -FilterHashtable @{ LogName = 'System'; Id = 41, 6008, 1001 } -MaxEvents 50 -ErrorAction SilentlyContinue |2 Select-Object TimeCreated, Id, ProviderName, @{ Name = 'Message'; Expression = { ($_.Message -split "`n")[0] } }1001 from BugCheck holds the stop code; minidumps are in C:\Windows\Minidump.