Predefined planned and unplanned reasons are available to choose from the list box on the Shutdown Event Tracker screen (please refer to Figure 9.34).You can also define custom shutdown reasons to use at shutdown times. This could be handy to narrow your system-specific limitations. Use the registry to define these additional reasons. The steps to add more custom reasons for the Shutdown Event Tracker are shown in Exercise 9.10.
Add Custom Shutdown Reasons
2. Navigate to the HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\Reliability\UserDefined key. Create a new string value called CSP:64:1 (for demonstration purposes). Refer to Table 9.12 for an explanation of the flags. This example indicates that a comment is required (C), the expected shutdown dialog box displays (S) and it is a planned shutdown (P). The "64:1" is a shutdown code, indicating the major and minor shutdown reasons. Refer to http://msdn.microsoft.com/library/
default.asp?url=/library/en-us/sysinfo/base/system_shutdown_ reason_codes.asp for a list of shutdown codes. The "64" means an Application and the "1" translates to Installation string. You can go through the shutdown event code table and choose customs settings for your system.
Was this article helpful?