具有來源 CertificationAuthority 和 ID 95 的事件收集規則

Microsoft.Windows.CertificateServices.CARole.2016.CertSvcEvents.95 (Rule)

憑證服務無法啟動:安全性權限已損毀。

Knowledge Base article:

摘要

Active Directory 憑證服務 (AD CS) 會在登錄中記錄重要組態設定,如果此資訊損毀或遭到刪除,則 Active Directory 憑證服務可能無法啟動或正確運作。

解決方式

修正憑證授權單位安全性權限

必要安全性權限的相關資訊儲存在登錄中,憑證授權單位 (CA) 需要該資訊才能正常運作。

若要執行這些程序,您必須擁有管理 CA 權限,或者必須已被委派適當的權限。

若要解決安全性權限問題:

確認安全性描述元損毀

若要確認 CA 安全性描述元已損毀:

還原 CA 登錄設定

注意:不當編輯登錄可能會對系統造成嚴重損害。在變更登錄前,您應先備份所有重要的資料。

若要從登錄區檔案還原登錄設定:

從備份還原 CA

備註:若要完成此程序,您必須在失敗之前已建立 CA 的備份,包括登錄設定、私密金鑰和 CA 憑證、憑證資料庫及資料庫記錄。

若要還原 CA:

建立 CA 偵錯記錄

若要建立偵錯記錄:

其他

若要確認憑證授權單位 (CA) 登錄設定:

Element properties:

TargetMicrosoft.Windows.CertificateServices.CARole.2016
CategoryEventCollection
EnabledTrue
Event_ID95
Event SourceMicrosoft-Windows-CertificationAuthority
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableTrue
Alert Message
AD CS 登錄設定 - 權限狀態無效
事件描述:{0}
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default
WriteToCertSvcEvents WriteAction Microsoft.Windows.CertificateServices.CARole.CertSvcEvents.Publisher Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectEvent Default

Source Code:

<Rule ID="Microsoft.Windows.CertificateServices.CARole.2016.CertSvcEvents.95" Enabled="true" Target="CSDisc!Microsoft.Windows.CertificateServices.CARole.2016" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">95</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-CertificationAuthority</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="WriteToCertSvcEvents" TypeID="Microsoft.Windows.CertificateServices.CARole.CertSvcEvents.Publisher"/>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="AlertMessageID28e38c0808c649d7b7063997775b7a66"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>