BSOD Create Live Kernel Dump File in Windows 11


  • Staff
Task_Manager_banner.png

This tutorial will show you how to create a live kernel dump file in Windows 11.

A live kernel dump creates a consistent snapshot of kernel memory and saves it to a dump file without having to restart the computer.

The goal of kernel live dump is to gather data to trouble shoot an abnormal situation, but allow the OS to continue operation. This reduces downtime when compared to a bug check for “non-fatal” but high-impact failures and hangs. Kernel live dumps are used when it is possible to recover the OS to a known good state.

Starting with Windows 11 build 22621.1928, Microsoft added a set of new developer-focused features in Task Manager to aid the collection of live kernel memory dumps (LKDs). This is in addition to the existing “Memory dump” for user mode processes. The goal of kernel live dump is to gather data to troubleshoot an abnormal situation but allow the OS to continue operation. This reduces downtime when compared to a bug check for “non-fatal” but high-impact failures and hangs.

A Full live kernel memory dump contains active kernel memory, with optional inclusion of hypervisor memory and user-mode memory. The options to capture hypervisor and user pages are available for full live kernel dumps. Alternatively, a Kernel stacks memory dump is a smaller file, limited to kernel processor states and all kernel thread stacks.

Reference:


You must be signed in as an administrator to create a live kernel dump file.



Contents

  • Option One: Create Live Kernel Dump File in Task Manager
  • Option Two: Create Live Kernel Dump File in PowerShell




Option One

Create Live Kernel Dump File in Task Manager


This option is only available starting with Windows 11 build 22621.1776.


1 Open Task Manager (Ctrl+Shift+Esc).

2 Perform the following actions: (see screenshot below)
  1. Click/tap on the Details tab.
  2. Right click on an empty area in Details.
  3. Click/tap on Create live kernel dump file.
  4. Click/tap on Full live kernel dump or Kernel stacks dump for which type of dump file you want to create.
Live_kernal_dump_Task_Manager.png

3 You will now see a Dumping kernel dialog showing you the location of the dump file. You can click/tap on OK to close the dialog, or click/tap on Open file location to open File Explorer to the dump file's location. (see screenshot below)

The dumps will be written to a fixed location:

%LocalAppData%\Microsoft\Windows\TaskManager\LiveKernelDumps


Live_kernal_dump.png




Option Two

Create Live Kernel Dump File in PowerShell


1 Open Windows Terminal (Admin), and select Windows PowerShell.

2 Copy and paste the command below into PowerShell, and press Enter to get the StorageSubsystem friendly name. (see screenshot below step 3)

Get-StorageSubSystem

3 Make note of the StorageSubsystem friendly name (ex: "Windows Storage on BrinkW11"). (see screenshot below)

Live_kernel_dump_PowerShell-1.png

4 Type the command below into PowerShell, and press Enter. (see screenshot below)

Get-StorageDiagnosticInfo -StorageSubSystemFriendlyName "<name>" -IncludeLiveDump -DestinationPath "$Env:userprofile\Desktop"

Substitute <name> in the command above with the actual StorageSubsystem friendly name (ex: "Windows Storage on BrinkW11") from step 3.

Get-StorageDiagnosticInfo -StorageSubSystemFriendlyName "Windows Storage on BrinkW11" -IncludeLiveDump -DestinationPath "$Env:userprofile\Desktop"


Live_kernel_dump_PowerShell-2.png

5 A localhost folder will now be created on your desktop that includes the live kernel dump file. (see screenshot below)

localhost_dump_file.png


That's it,
Shawn Brink


 

Attachments

  • Task_Manager.png
    Task_Manager.png
    7.6 KB · Views: 71
Last edited:
Back
Top Bottom