訊息佇列資料夾無法建立。
訊息佇列存取控制清單 (ACL) 需要適當的目錄權限,才能嘗試寫入。
確認 ACL 已正確設定
確認 MSMQ 服務已使用具有適當權限的帳戶來執行,如此方可建立和修改 MSMQ 服務使用的目錄。(根據預設,MSMQ 服務會在 %windir%\System32\MSMQ 目錄底下建立目錄。)您也可以將 [修改]、[讀取] 和 [寫入] 權限直接授與執行 MSMQ 服務的帳戶,以完成此動作。
若要執行此程序,您必須具備 Administrators 的成員資格,或者必須已被委派適當的權限。
判斷執行 MSMQ 服務的帳戶:
開啟 [服務] 嵌入式管理單元。若要開啟服務,請按一下 [開始]。在搜尋方塊中輸入 services.msc,然後按下 ENTER。
找出 [訊息佇列],然後檢查 [登入身分] 欄中的帳戶名稱。
開啟 [Windows 檔案總管],然後瀏覽至 [訊息佇列] 資料夾,其應位於 %windir%\System32\msmq 路徑 (例如:C:\Windows\System32\msmq) 底下。
以滑鼠右鍵按一下 [msmq] 資料夾,指向 [內容],然後按一下 [安全性] 索引標籤。
在 [群組和使用者名稱] 中按一下 [編輯]。
在快顯視窗中按一下 [新增],然後輸入執行 MSMQ 服務的帳戶的名稱。此即為您在步驟 2 中找到的名稱。
按一下 [確定]。
在 [權限] 區段中,對下列權限選取 [允許] 核取方塊:[完全控制, ]、[修改]、[讀取執行] 和 [寫入]。
如果這項錯誤仍持續發生,請記下事件訊息中的所有詳細資料,然後連絡 Microsoft 客戶服務及支援 (CSS)。如需如何連絡 CSS 的相關資訊,請參閱「企業支援」( http://go.microsoft.com/fwlink/?LinkId=52267)。
如需詳細資訊,請參閱事件識別碼 2096 ( http://technet.microsoft.com/en-us/library/dd337427(WS.10).aspx)
Target | Microsoft.MSMQ.6.3.Servers | ||
Category | ConfigurationHealth | ||
Enabled | False | ||
Event_ID | 2096 | ||
Event Source | $Target/Property[Type="Microsoft.MSMQ.6.3.ServerRole"]/ServiceName$ | ||
Alert Generate | True | ||
Alert Severity | Warning | ||
Alert Priority | Normal | ||
Remotable | True | ||
Alert Message |
| ||
Event Log | Application |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.EventProvider | Default |
Alert | WriteAction | System.Health.GenerateAlert | Default |
<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>