修改、 禁用或删除 Exchange Online 中的共享策略Modify, disable, or remove a sharing policy in Exchange Online

共享策略对用户与组织外人员共享日历的方式进行控制。您可能希望更改某些共享策略属性,例如更改共享规则、更改忙/闲访问级别、临时禁用共享策略或删除完整的共享策略。Sharing policies control how your users share their calendars with people outside your organization. You may want to change some sharing policy properties, such as changing sharing rules, changing the free/busy access level, temporarily disabling a sharing policy, or removing a sharing policy entirely.

有关如何创建共享策略的详细信息,请参阅共享策略 Exchange Online 中创建For details about how to create a sharing policy, see Create a sharing policy in Exchange Online

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

  • 估计完成每个步骤的时间:5 分钟。Estimated time to complete each procedure: 5 minutes.

  • 您必须先获得权限,然后才能执行此过程或多个过程。若要查看所需的权限,请参阅 Exchange Online 中的权限主题。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the Permissions in Exchange Online topic.

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

使用 Exchange 管理中心更改共享策略Use the Exchange admin center to change a sharing policy

  1. 从 Office 365 管理中心主控板中,转到管理 > ExchangeFrom the Office 365 admin center dashboard, go to Admin > Exchange.

  2. 转到组织 > 共享Go to organization > sharing.

  3. 单个共享下选择共享策略,请在,然后单击编辑编辑图标Under Individual Sharing, select a sharing a policy, and then click EditEdit icon.

  4. 共享策略,单击编辑编辑图标In sharing policy, click EditEdit icon.

  5. 共享规则,更改日历的设置如您希望共享信息的域和共享的级别。单击保存以更新规则。In sharing rule, change the settings such as the domain you want to share information with and the sharing level for calendars. Click save to update the rule.

  6. 共享策略,单击保存以更新共享策略。In sharing policy, click save to update the sharing policy.

使用 Exchange 管理中心将共享策略设置为默认共享策略Use the Exchange admin center to set a sharing policy as the default sharing policy

  1. 从 Office 365 管理中心主控板中,转到管理 > ExchangeFrom the Office 365 admin center dashboard, go to Admin > Exchange.

  2. 转到组织 > 共享Go to organization > sharing.

  3. 单个共享下选择共享策略,请在,然后单击编辑编辑图标Under Individual Sharing, select a sharing a policy, and then click EditEdit icon.

  4. 共享策略,选择使此策略作为我的默认共享策略复选框。In sharing policy, select the Make this policy my default sharing policy check box.

  5. 单击保存以更新共享策略。Click save to update the sharing policy.

使用 Exchange 管理中心禁用共享策略Use the Exchange admin center to disable a sharing policy

  1. 从 Office 365 管理中心主控板中,转到管理 > ExchangeFrom the Office 365 admin center dashboard, go to Admin > Exchange.

  2. 转到组织 > 共享Go to organization > sharing.

  3. 单个共享下选择共享策略。Under Individual Sharing, select a sharing a policy.

  4. 列中,清除您想要禁用共享策略复选框。In the On column, clear the check box for the sharing policy you want to disable.

使用 Exchange 管理中心删除共享策略Use the Exchange admin center to remove a sharing policy

重要

在删除某个共享策略之前,该共享策略必须从所有用户邮箱中删除。Before you remove a sharing policy, the sharing policy must be removed from all user mailboxes.

  1. 从 Office 365 管理中心主控板中,转到管理 > ExchangeFrom the Office 365 admin center dashboard, go to Admin > Exchange.

  2. 转到组织 > 共享Go to organization > sharing.

  3. 单个共享下选择共享策略,请在,然后单击删除删除图标Under Individual Sharing, select a sharing a policy, and then click DeleteDelete icon.

  4. 在警告中,单击删除共享策略。In the warning, click yes to delete the sharing policy.

使用 Exchange 命令行管理程序修改、 禁用或删除共享策略Use the Exchange Management Shell to modify, disable or remove a sharing policy

  • 此示例修改共享策略 Contoso。此策略允许 Contoso 域中的用户查看简单的忙/闲信息。This example modifies the sharing policy Contoso. This policy allows users in the Contoso domain to see simple free/busy information.

    Set-SharingPolicy -Identity Contoso -Domains 'sales.contoso.com: CalendarSharingFreeBusySimple'
    
  • 此示例将第二个域添加到共享策略 Contoso。将域添加到现有策略时,必须包括任何以前包括的域。This example adds a second domain to the sharing policy Contoso. When you're adding a domain to an existing policy, you must include any previously included domains.

    Set-SharingPolicy -Identity Contoso -Domains 'contoso.com: CalendarSharingFreeBusySimple', 'atlanta.contoso.com: CalendarSharingFreeBusyReviewer', 'beijing.contoso.com: CalendarSharingFreeBusyReviewer'
    
  • 此示例将共享策略 Contoso 设置为默认共享策略。This example sets the sharing policy Contoso as the default sharing policy.

    Set-SharingPolicy -Identity Contoso -Default $True
    
  • 此示例禁用共享策略 Contoso。This example disables the sharing policy Contoso.

    Set-SharingPolicy -Identity "Contoso" -Enabled $False
    
  • 第一个示例删除共享策略 Contoso。第二个示例删除共享策略 Contoso,并且禁止显示对要删除策略的确认。The first example removes the sharing policy Contoso. The second example removes the sharing policy Contoso and suppresses the confirmation that you want to remove the policy.

    Remove-SharingPolicy -Identity Contoso
    
    Remove-SharingPolicy -Identity Contoso -Confirm
    

有关语法和参数的详细信息,请参阅 Set-SharingPolicyRemove-SharingPolicyFor detailed syntax and parameter information, see Set-SharingPolicy and Remove-SharingPolicy.