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

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

憑證服務無法在 NTAuth 存放區中找到 CA 憑證。

Knowledge Base article:

摘要

Active Directory 憑證服務 (AD CS) 至少需要讀取存取權,在部分例項中,Active Directory 網域服務 (AD DS) 中的某些物件需要寫入存取權。無法存取這些 Active Directory 物件可防止 AD CS 啟動。

解決方式

確保 AD CS 能夠將 CA 憑證發佈至 NTAuth 存放區

若要修正此問題:

如果您在尋找 CA 憑證以將其發佈至 NTAuth 存放區時遇到問題,請先使用「尋找電腦上的 CA 憑證檔案」一節中的程序,然後再將其發佈至 NTAuth 存放區。

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

確認 NTAuth 存放區權限

若要檢查 NTAuth 容器中 CA 的權限:

確認 NTAuth 存放區的內容

若要檢查 Active Directory 網域服務 (AD DS) 中 NTAuth 存放區的內容:

尋找電腦上的 CA 憑證檔案

若要尋找本機檔案系統上的 CA 憑證檔案:

依預設,此檔案儲存於 %systemroot%\system32\certsrv\certenroll。

Element properties:

TargetMicrosoft.Windows.CertificateServices.CARole.2016
CategoryEventCollection
EnabledTrue
Event_ID93
Event SourceMicrosoft-Windows-CertificationAuthority
Alert GenerateFalse
RemotableTrue
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider 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.93" 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">93</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"/>
</WriteActions>
</Rule>