Avamar:Windows VSS 備份失敗,並顯示「0x80070005存取遭到拒絕」錯誤訊息
Summary: Windows 捲影複製服務 (VSS) 備份失敗,並顯示「代碼 0x80070005 Access Is denied」錯誤訊息。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
Windows VSS 備份失敗
Windows VSS 系統狀態備份失敗,並出現類似以下的錯誤訊息:
2015-12-11 07:17:22 avvss Error <8336>: VSS exception code 0x80070005 thrown creating object - 'code 0x80070005: Access is denied'
2015-12-11 07:17:22 avvss Error <0000>: Failed to allocate VSS client, exiting
- 由於 Avamar SQL 備份也在同一個用戶端上進行,因此 Avagent 服務可能設定為使用 NT 網域帳戶執行。
- NT 授權單位/系統帳戶尚未在 SQL Server Management Studio 中被授予 sysadmin 角色,此角色是備份 SQL 資料庫所必需的。
Cause
Windows VSS 備份失敗的根本原因
失敗並出現「Access is denied」錯誤的根本原因是使用 NT 網域帳戶設定備份代理程式 (Avagent) 服務。此帳戶沒有足夠的許可權進行 VSS 卷影複製操作。
根據預設,Avagent 服務會設定為使用具有必要權限的本機 SYSTEM 帳戶執行。但是,當服務配置為使用 NT 域帳戶運行時,它缺少所需的許可權,從而導致“訪問被拒絕”錯誤。
與此問題關聯的特定錯誤代碼為0x80070005,表示拒絕訪問錯誤。
Error code: 0x80070005
Error message: Access is denied
影響因素
- 用於設定 Avagent 服務的 NT 網域帳戶在備份 SQL 資料庫的 SQL Server Management Studio 中沒有 sysadmin 角色。
- Avamar SQL 備份也在同一個用戶端上進行,這可能與 Avagent 服務的組態有關。
Resolution
解決 Windows VSS 備份失敗
若要解決 Windows VSS 備份失敗,請按照下列步驟操作:
- 在 Windows 用戶端上開啟 regedit 以編輯登錄,並依照最佳實務變更 regedit。
- 瀏覽至 HKLM/System/CurrentControlSet/Services/VSS 登錄機碼。
- 以滑鼠右鍵按一下 VssAccessControl 鍵,並新增一個 DWORD (32 位元) 值。
- 使用 Avagent 服務帳戶的 domain\username 命名,並將值設為 1。
- 結束登錄檔編輯器 (不需要重新開機)。
完成上述步驟後,請檢查備份記錄中是否有任何與 VSS 備份相關的錯誤訊息,以確認問題是否已成功解決。
此解決方案不需要特定的工具或軟體,除了 Windows 登錄編輯器 (regedit)。
請在編輯登錄檔前先確認您的權限,並遵守最佳實務以防止發生問題。
如果未正確編輯註冊表,可能會導致系統不穩定。請謹慎操作,並考慮在進行變更前備份登錄檔。
Affected Products
Avamar, Avamar Client for WindowsArticle Properties
Article Number: 000025623
Article Type: Solution
Last Modified: 13 May 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.