Error writing a value to the registry.

Error_writing_a_value_to_the_registry._1_2_Rule (Rule)

Knowledge Base article:

Management Pack
Causes
This event is logged during service startup when the service tries to update the event log parameters at HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application\PCNSSVC.
 
Resolutions
Make sure that the following registry keys exist and that the SYSTEM account has write access:

HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application\PCNSSVC
 
Sample Event
Error writing a value to the registry.
Key: %1
Value: %2
Error: %3
 
© 2004 Microsoft Corporation, all rights reserved.

Element properties:

TargetMicrosoft.Windows.PasswordChangeNotificationService.2003.Windows_2000_Domain_Controllers_Installation
CategoryEventCollection
EnabledTrue
Event_ID6008
Event SourcePCNSSVC
Alert GenerateTrue
Alert SeverityError
Alert PriorityLow
RemotableTrue
Alert Message
Error writing a value to the registry.

$Data/EventDescription$
Event LogApplication
CommentMom2005ID='{C21EF421-FD63-4ADD-B8E4-0055BE30C9C9}';MOM2005ComputerGroupID={F7F2D982-5AF9-11D3-BEEE-00A0C938A970}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Default
CollectEventData WriteAction Microsoft.SystemCenter.CollectEvent Default
CollectEventDataWarehouse WriteAction Microsoft.SystemCenter.DataWarehouse.PublishEventData Default
GenerateAlert WriteAction System.Mom.BackwardCompatibility.AlertResponse Default

Source Code:

<Rule ID="Error_writing_a_value_to_the_registry._1_2_Rule" Target="Microsoft.Windows.PasswordChangeNotificationService.2003.Windows_2000_Domain_Controllers_Installation" Enabled="true" ConfirmDelivery="true" Comment="Mom2005ID='{C21EF421-FD63-4ADD-B8E4-0055BE30C9C9}';MOM2005ComputerGroupID={F7F2D982-5AF9-11D3-BEEE-00A0C938A970}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="WindowsLibrary!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="WindowsLibrary!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Channel</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Application</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>PCNSSVC</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>6008</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="MomBackwardCompatibility!System.Mom.BackwardCompatibility.AlertResponse">
<AlertGeneration>
<GenerateAlert>true</GenerateAlert>
<Owner/>
<Description>
$Data/EventDescription$
</Description>
<AlertLevel>50</AlertLevel>
<ResolutionState/>
<Source>
$Data/PublisherName$
</Source>
<Name>Error writing a value to the registry.</Name>
</AlertGeneration>
<InvokerType>0</InvokerType>
</WriteAction>
<WriteAction ID="CollectEventData" TypeID="SystemCenterLibrary!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="CollectEventDataWarehouse" TypeID="DataWarehouseLibrary!Microsoft.SystemCenter.DataWarehouse.PublishEventData"/>
</WriteActions>
</Rule>