为用户启用或禁用呼叫应答规则Enable or disable a call answering rule for a user

您可以使用命令行管理程序启用或禁用一个或多个用户呼叫应答规则。您可以在 Exchange 命令行管理程序脚本中使用Enable-umcallansweringruleDisable-umcallansweringrule cmdlet 启用或禁用一个或多个呼叫应答规则的多个用户。You can use the Shell to enable or disable one or more call answering rules for a user. You can also use the Enable-UMCallAnsweringRule or Disable-UMCallAnsweringRule cmdlets in an Exchange Management Shell script to enable or disable one or more call answering rules for multiple users.

呼叫应答规则应用于传入呼叫的方式与收件箱规则应用于传入电子邮件的方式类似。默认情况下,用户启用统一消息 (UM) 时,未配置呼叫应答规则。即使如此,传入呼叫由邮件系统应答,并提示呼叫者留下语音邮件。Call answering rules are applied to incoming calls similar to the way Inbox rules are applied to incoming email messages. By default, when a user is enabled for Unified Messaging (UM), no call answering rules are configured. Even so, incoming calls are answered by the mail system and callers are prompted to leave a voice message.

呼叫应答规则相关的其他管理任务,请参阅转接呼叫的过程For additional management tasks related to call answering rules, see Forwarding calls procedures.

在开始之前,您需要知道什么?What do you need to know before you begin?

  • 估计完成时间:小于 1 分钟。Estimated time to complete: Less than 1 minute.

  • 您需要执行此过程之前为其分配权限。若要查看所需的权限,请参阅Messaging Permissions主题中的"UM 呼叫应答规则"条目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "UM call answering rules" entry in the Unified Messaging Permissions topic.

  • 在执行此过程之前,请确认已创建 UM 拨号计划。有关详细步骤,请参阅创建 UM 拨号计划Before you perform this procedure, confirm that a UM dial plan has been created. For detailed steps, see Create a UM dial plan.

  • 在执行此过程之前,请确认已创建 UM 邮箱策略。有关详细步骤,请参阅创建 UM 邮箱策略Before you perform this procedure, confirm that a UM mailbox policy has been created. For detailed steps, see Create a UM mailbox policy.

  • 在执行此过程之前,请确认已启用 UM 的用户的邮箱。有关详细步骤,请参阅启用语音邮件的用户Before you perform this procedure, confirm that the user's mailbox has been UM-enabled. For detailed steps, see Enable a user for voice mail.

  • 仅可以使用命令行管理程序来执行此过程。若要了解如何在本地 Exchange 组织中打开 Exchange Management Shell,请参阅打开命令行管理程序。若要了解如何使用 Windows PowerShell 连接到 Exchange Online,请参阅Connect to Exchange Online PowerShell 中You can only use the Shell to perform this procedure. To learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Shell. To learn how to use Windows PowerShell to connect to Exchange Online, see Connect to Exchange Online PowerShell.

  • 若要了解可能适用于此主题中过程的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

有问题?寻求帮助 Exchange 论坛。访问在Exchange ServerExchange OnlineExchange Online Protection论坛正在Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server,Exchange Online, or Exchange Online Protection..

您想执行什么操作?What do you want to do?

使用命令行管理程序启用呼叫应答规则Use the Shell to enable a call answering rule

创建呼叫应答规则时,就会启用该规则。可以使用命令行管理程序启用以前禁用的呼叫应答规则。启用呼叫应答规则后,Enable-UMCallAnsweringRule cmdlet 可以检索呼叫应答规则,包括指定呼叫应答规则的条件和操作。When a call answering rule is created, it's enabled. You can use the Shell to enable a call answering rule that was previously disabled. Enabling a call answering rule enables the Enable-UMCallAnsweringRule cmdlet to retrieve the call answering rule, including the conditions and actions for a specified call answering rule.

本示例启用电话应答规则MyUMCallAnsweringRuleTony smith 的邮箱中。This example enables the call answering rule MyUMCallAnsweringRule in the mailbox for Tony Smith.

Enable-UMCallAnsweringRule -Identity MyUMCallAnsweringRule -Mailbox tonysmith

该示例使用_WhatIf_开关来测试呼叫应答规则是否MyUMCallAnsweringRuleTony Smith 的邮箱中并且已准备好启用是否出现在命令内的任何错误。The example uses the WhatIf switch to test whether the call answering rule MyUMCallAnsweringRule in the mailbox for Tony Smith is ready to be enabled and if there are any errors within the command.

Enable-UMCallAnsweringRule -Identity MyUMCallAnsweringRule -Mailbox tonysmith -WhatIf

本示例启用电话应答规则MyUMCallAnsweringRuleTony Smith 和提示登录用户确认呼叫应答规则是要启用的邮箱中。This example enables the call answering rule MyUMCallAnsweringRule in the mailbox for Tony Smith and prompts the signed-in user to confirm that the call answering rule is to be enabled.

Enable-UMCallAnsweringRule -Identity MyUMCallAnsweringRule -Mailbox tonysmith -Confirm

使用命令行管理程序禁用呼叫应答规则Use the Shell to disable a call answering rule

禁用呼叫应答规则可防止在收到传入呼叫时检索和处理该规则。创建呼叫应答规则时,应在设置条件和操作的同时禁用它。这可防止在正确配置呼叫应答规则之前,在收到来电时处理呼叫应答规则。Disabling a call answering rule prevents it from being retrieved and processed when an incoming call is received. When you create a call answering rule, you should disable it while you're setting up conditions and actions. This prevents the call answering rule from being processed when an incoming call is received before you've correctly configured the call answering rule.

本示例禁用呼叫应答规则MyUMCallAnsweringRuleTony smith 的邮箱中。This example disables the call answering rule MyUMCallAnsweringRule in the mailbox for Tony Smith.

Disable -UMCallAnsweringRule -Identity MyUMCallAnsweringRule -Mailbox tonysmith

此示例使用_WhatIf_开关测试是否呼叫应答规则MyUMCallAnsweringRuleTony Smith 的邮箱中并且准备禁用是否出现在命令内的任何错误。This example uses the WhatIf switch to test whether the call answering rule MyUMCallAnsweringRule in the mailbox for Tony Smith is ready to be disabled and if there are any errors within the command.

Disable -UMCallAnsweringRule -Identity MyUMCallAnsweringRule -Mailbox tonysmith -WhatIf

本示例禁用呼叫应答规则MyUMCallAnsweringRuleTony Smith 和提示登录用户确认他们正禁用呼叫应答规则的邮箱中。This example disables the call answering rule MyUMCallAnsweringRule in the mailbox for Tony Smith and prompts the signed-in user to confirm that they're disabling the call answering rule.

Disable-UMCallAnsweringRule -Identity MyUMCallAnsweringRule -Mailbox tonysmith -Confirm