How To Check Crash Control Settings On Remote Computer

The following knowledgebase will explain the methods you can use to set the Crash Control (Memory dump) on remote computers.

You can use the following methods to check and set the Crash Control settings on remote computer:

  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:

HKLM\SYSTEM\CurrentControlSet\Control\CrashControl

The above registry includes the following values in right pane:

AutoReboot DWORD 00000001

CrashDumpEnabled DWORD 00000003

DumpFile STRING The dump file name

LogEvent DWORD 00000001

MinidumpDir DWORD The dump file location

Overwrite DWORD 00000001

SendAlert DWORD 00000001

You can use the below script to check the Crash Control settings on a remote computer is enabled or not.

@echo off

Srvlist=C:\Temp\Srvlist.txt

Echo Computer Name, Crash Control Settings Enabled?, Auto Reboot? >> Result.csv

SET Crash_Ctrl=

SET Auto_Rbt=

For /F “Tokens=*” %%a In (%srvlist%) Do (

Set Comp_name=%%a

Set RegQry=”\\%%a\HKLM\SYSTEM\CurrentControlSet\Control\CrashControl”

REG.exe Query %RegQry% > CheckCC.txt

Find /i “CrashDumpEnabled REG_DWORD 0x3” < CheckCC.txt > StringCheck.txt

If %errorlelvel% == 0 (

SET Crash_Ctrl=Enabled

) ELSE (

SET Crash_Ctrl=Disabled

)

Find /i “AutoReboot REG_DWORD 0x1” < CheckCC.txt > StringCheck.txt

If %errorlelvel% == 0 (

SET Auto_Rbt=Enabled

) ELSE (

SET Auto_Rbt=Disabled

)

Echo %Comp_name, %Crash_Ctrl%, %Auto_Rbt% >> Result.csv

)

*** End ***

The above script will check remote computer for two registry entries to check whether Crash Control is enabled or not and the results will be saved in a CSV format file.

2 thoughts on “How To Check Crash Control Settings On Remote Computer”

  1. I cannot seem to get this to work from a Windows XP computer. I tried to run the file as a VB script and a batch file. Here are the errors.

    Srvlist=C:\Temp\Srvlist.txt
    ‘Srvlist’ is not recognized as an internal or external command, operable program or batch file.

    For /F “Tokens=*” %%a In (%srvlist%) Do (
    *” was unexpected at this time.

    Is there any additonal software I need?

Leave a Reply

Your email address will not be published. Required fields are marked *