通訊群組命名原則會覆寫Override the distribution group naming policy

群組的通訊群組命名原則只會套用到使用者所建立的群組。當您或其他管理員使用 Exchange 系統管理中心 (EAC) 來建立通訊群組時、 群組命名原則會忽略並不會套用到的群組名稱。The group naming policy for distribution groups is applied only to groups created by users. When you or other administrators use the Exchange Administration Center (EAC) to create distribution groups, the group naming policy is ignored and not applied to the group name.

不過,如果您使用 Exchange 管理命令介面來建立或重新命名的通訊群組、 群組命名原則套用至除非您使用_IgnoreNamingPolicy_參數來群組命名原則會覆寫系統管理員所建立的群組。However, if you use the Exchange Management Shell to create or rename a distribution group, the group naming policy is applied to groups created by administrators unless you use the IgnoreNamingPolicy parameter to override the group naming policy.

開始之前有哪些須知?What do you need to know before you begin?

  • 預估完成時間: 2 分鐘。Estimated time to complete: 2 minutes.

  • 您必須獲得權限才能執行此程序或程序。若您需要哪些權限,請參閱Recipients permissions主題中的 「 通訊群組 」 項目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Distribution Groups" entry in the Recipients permissions topic.

  • 如需適用於此主題中程序的快速鍵相關資訊,請參閱 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 override the group naming policy when you create a new group

若要複寫群組命名原則,請執行以下命令。To override the group naming policy, run the following command.

New-DistributionGroup -Name <Group Name> -IgnoreNamingPolicy

例如,如果群組命名原則您的組織是 DG_<群組名稱>Users,執行下列命令以建立名為所有的系統管理員群組。For example, if the group naming policy for your organization is DG<Group Name>_Users, run the following command to create a group named All Administrators.

New-DistributionGroup -Name "All Administrators" -IgnoreNamingPolicy

當 Microsoft Exchange 會建立此群組時,它會使用_Name_和_DisplayName_參數的所有系統管理員。When Microsoft Exchange creates this group, it uses All Administrators for both the Name and DisplayName parameters.

使用命令介面在您重新命名群組時覆寫群組命名原則Use the Shell to override the group naming policy when you rename a group

若要在命令介面中重新命名現有群組時覆寫群組命名原則,請執行下列命令:To override the group naming policy when you rename an existing group with the Shell, run the following command.

Set-DistributionGroup -Identity <Old Group Name> -Name <New Group Name> -DisplayName <New Group Name> -IgnoreNamingPolicy

例如,假設您建立群組命名原則落後一個夜間與您下一步早上實現拼錯的前置字中的文字字串。下一個晨曦 」,您會看到新的群組已建立與拼錯的字首。您可以修正群組命名原則在 EAC 中,但是您必須使用命令介面來重新命名群組拼錯的名稱。執行下列命令。For example, let's say you created a group naming policy late one night and the next morning you realized you misspelled the text string in the prefix. The next morning, you see that a new group has already been created with the misspelled prefix. You can fix the group naming policy in the EAC, but you have to use the Shell to rename the group with the misspelled name. Run the following command.

Set-DistributionGroup -Identity "Goverment_Contracts_NWRegion" -Name "Government_ContractEstimates_NWRegion" -DisplayName "Government_ContractEstimates_NWRegion" -IgnoreNamingPolicy

重要

請務必包含_DisplayName_參數時重新命名群組。如果您不要的舊名稱仍會顯示在 [收件者共用的通訊錄中:、 [副本:,以及從: 電子郵件訊息中的行。Be sure to include the DisplayName parameter when you rename a group. If you don't, the old name is still displayed in the shared address book on the To:, Cc:, and From: lines in email messages.

如何知道這是否正常運作?How do you know this worked?

若要確認您是否已成功建立或重新命名的通訊群組會忽略群組命名原則,請執行下列命令。To verify that you've successfully created or renamed a distribution group that ignores the group naming policy, run the following commands.

Get-DistributionGroup <Name> | FL DisplayName
Get-OrganizationConfig | FL DistributionGroupNamingPolicy

如果不同於您的組織群組命名原則來強制執行其中一個群組的顯示名稱的格式,它正常運作。If the format of the display name for the group is different than the one enforced by your organization's group naming policy, it worked.