How do you force Windows to keep memory dumps?

In the registry, navigate to the HKLM\SYSTEM\CurrentControlSet\Control\CrashControl key.

Set the value AlwaysKeepMemoryDump (REG_DWORD) to 1. Create the key if it does not exist.