Avamar:Exchange 代理备份失败,并显示“get-mailboxdatabase”未被识别为 cmdlet 的名称”

Summary: Exchange 代理备份失败,并显示“术语'get-mailboxdatabase'未被识别为 cmdlet 的名称”

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

Exchange DAG 备份失败,并显示以下错误:
2019-07-16 11:43:32 avexvss Error <0000>: The term 'get-mailboxdatabase' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
2019-07-16 11:43:32 avexvss Error <0000>:    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)

   at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope)

   at System.Management.Automation.Runspaces.Command.CreateCommandProcessor(ExecutionContext executionContext, CommandFactory commandFactory, Boolean addToHistory, CommandOrigin origin)

   at System.Management.Automation.Runspaces.LocalPipeline.CreatePipelineProcessor()

   at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()

   at System.Management.Automation.Runspaces.LocalPipeline...
2019-07-16 11:43:32 avexvss Error <16954>: Unable to initialize Powershell interface process -- cannot continue.
2019-07-16 11:43:32 avexvss Error <13072>: Unhandled Exception in avexvss.

Cause

Avagent (备份代理)服务仍使用本地 SYSTEM 帐户进行配置,该帐户没有运行 Exchange PowerShell 命令的必要权限。

所有 Exchange 卷影拷贝服务 (VSS) 插件安装都需要 Avamarbackupuser 或用于 Exchange 备份和还原目的的类似特权帐户。

Resolution

使用 在所有 Exchange DAG 节点上配置备份代理服务 Avamarbackupuser 或类似的特权帐户。

Avamarbackupuser 帐户需要以下权限和安全组(从 Exchange 2010、2013 和 2016 开始 - Avamar 7.1 SP1 或更高版本):
  • Avamar 角色
  • Exchange 受信任子系统
  • 域用户
  • Exchange Server

某些包含父域和子域的 AD 环境可能还需要 AD 组组织管理。

启动 Avamar Exchange 备份用户配置工具以设置 Avamarbackupuser 帐户,或按照《Avamar Exchange VSS 用户指南》文档的安装部分中的说明手动创建帐户。

Additional Information

提醒:当使用备份用户配置工具创建和调配 Avamarbackupuser 帐户。也可以在 Exchange 命令行管理程序中使用以下语法手动创建它:
New-RoleGroup -Name "Avamar Roles" -Roles 'Database Copies', 'Databases', 'Mail Recipient Creation', 'Mail Recipients', 'View-Only Configuration', 'View-Only Recipients', 'Disaster Recovery'

Affected Products

Avamar

Products

Avamar, Avamar Plug-in for Hyper-V VSS, PowerProtect DP4400
Article Properties
Article Number: 000048868
Article Type: Solution
Last Modified: 14 May 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.