Skip to content

How to Capture a Process Crash Dump with Windows Error Reporting Print

  • 0

Applies to: Windows Server 2019, Windows Server 2022, and Windows Server 2025.

A local dump can preserve diagnostic state for an intermittently crashing server application without continuously running an interactive debugger.

Prerequisites

  • The exact executable name is known.
  • Sufficient protected disk space is available.
  • The software vendor has approved dump collection and secure transfer.

Configuration procedure

  1. Create a restricted dump directory.
  2. Configure LocalDumps for the specific executable under Windows Error Reporting.
  3. Choose a dump type appropriate for the investigation and set a small retention count.
  4. Reproduce or wait for the crash.
  5. Securely copy the dump to the authorized analysis location and remove collection settings after evidence is captured.

PowerShell commands

New-Item -Path "C:\CrashDumps" -ItemType Directory -Force
$k="HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\App.exe"
New-Item -Path $k -Force
New-ItemProperty -Path $k -Name DumpFolder -Value "C:\CrashDumps" -PropertyType ExpandString -Force
New-ItemProperty -Path $k -Name DumpCount -Value 3 -PropertyType DWord -Force
New-ItemProperty -Path $k -Name DumpType -Value 2 -PropertyType DWord -Force

Verification

After a controlled crash, a time-stamped DMP file appears in the restricted folder and the Application event log identifies the same executable and time.

Rollback

Remove the executable-specific LocalDumps registry key and delete diagnostic files after the approved retention period.

Security and operations

  • Full dumps may contain credentials, personal data, encryption material, and customer content.
  • Limit folder access to the incident team.
  • Never upload a dump to a public file-sharing service.

Related resources

Build your Canadian Windows VPS environment with networkmanager.info. Consult the Microsoft Windows Server documentation before production deployment.


Was this answer helpful?

« Back