středa 20. března 2019

Jak zaregistrovat vlastní event do EventVieweru

  • Expand HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog
  • Find the Application key and create a new key for your application: MyApp
  • In MyApp, right-click the right side window in the blank area and select New > Expandable String Value. This will create a REG_EXPAND_SZ entry. Give it the name EventMessageFile.
  • Double-click the new entry to set a value. For the value, enter: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\EventLogMessages.dll Select OK.
  • Leave the (Default) string value alone with its (value not set) value.
  • Repeat two more times by replacing CurrentControlSet with ControlSet001 and ControlSet002.