How To Check Crash Control Settings On Remote Computer

Author:

Nirmal Sharma MVP

COMMUNITY SOLUTIONS CONTENT DISCLAIMER

MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

SUMMARY

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

MORE INFORMATION

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
 
)
 
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.
 
Properties

Article ID: 556010 - Last Review: 14 Feb 2017 - Revision: 1

Microsoft Windows Server 2003, Datacenter Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Standard Edition (32-bit x86), Microsoft Windows Server 2003, Web Edition, Microsoft Windows 2000 Enterprise Edition, Microsoft Windows 2000 Professional Edition, Microsoft Windows 2000 Service Pack 4, Microsoft Windows 2000 Standard Edition

Feedback