訊息佇列資料夾無法建立。

Microsoft.MSMQ.6.3.Rule.Alert.Event2096 (Rule)

Knowledge Base article:

摘要

訊息佇列資料夾無法建立。

原因

訊息佇列存取控制清單 (ACL) 需要適當的目錄權限,才能嘗試寫入。

解決方式

確認 ACL 已正確設定

確認 MSMQ 服務已使用具有適當權限的帳戶來執行,如此方可建立和修改 MSMQ 服務使用的目錄。(根據預設,MSMQ 服務會在 %windir%\System32\MSMQ 目錄底下建立目錄。)您也可以將 [修改]、[讀取] 和 [寫入] 權限直接授與執行 MSMQ 服務的帳戶,以完成此動作。

若要執行此程序,您必須具備 Administrators 的成員資格,或者必須已被委派適當的權限。

判斷執行 MSMQ 服務的帳戶:

其他

如果這項錯誤仍持續發生,請記下事件訊息中的所有詳細資料,然後連絡 Microsoft 客戶服務及支援 (CSS)。如需如何連絡 CSS 的相關資訊,請參閱「企業支援」( http://go.microsoft.com/fwlink/?LinkId=52267)。

如需詳細資訊,請參閱事件識別碼 2096 ( http://technet.microsoft.com/en-us/library/dd337427(WS.10).aspx)

Element properties:

TargetMicrosoft.MSMQ.6.3.Servers
CategoryConfigurationHealth
EnabledFalse
Event_ID2096
Event Source$Target/Property[Type="Microsoft.MSMQ.6.3.ServerRole"]/ServiceName$
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
訊息佇列資料夾無法建立。
事件描述:{0}
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.MSMQ.6.3.Rule.Alert.Event2096" Enabled="false" Target="Microsoft.MSMQ.6.3.Servers" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>ConfigurationHealth</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">2096</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="Microsoft.MSMQ.6.3.ServerRole"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.MSMQ.6.3.Rule.Alert.Event2096.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>