在 Exchange Online 中创建用户邮箱Create user mailboxes in Exchange Online

您必须使用 Office 365 管理中心 或 Exchange 命令行管理程序 创建 Exchange Online 用户邮箱。您无法使用 Exchange 管理中心 (EAC) 创建新用户邮箱。但是,在创建 Exchange Online 邮箱后,您可以使用 EAC 对其进行管理。You have to use the Office 365 admin center or the Exchange Management Shell to create an Exchange Online user mailbox. You can't create new user mailboxes using the Exchange admin center (EAC). However, after Exchange Online mailboxes are created, you can manage them using the EAC.

备注

在使用 Exchange 命令行管理程序 创建新邮箱之后,您必须为其分配一个 Exchange Online 许可证,否则在 30 天宽限期结束后该邮箱会被禁用。After you create a new mailbox using the Exchange Management Shell, you have to assign it an Exchange Online license or it will be disabled when the 30-day grace period ends.

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

  • 估计完成时间:3 分钟。Estimated time to complete: 3 minutes.

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

  • 最好是使用长度至少为八个字符、由大小写字母、数字和符号构成的强密码。It's a good idea to use strong passwords that are at least eight characters long, and combine uppercase and lowercase letters, numbers, and symbols.

  • 若要了解如何使用 Windows PowerShell 连接到 Exchange Online,请参阅连接到 Exchange Online PowerShellTo 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?

使用 Office 365 管理中心 新建邮箱Use the Office 365 admin center to create a new mailbox

您可以使用 Office 365 管理中心 创建新用户帐户。在为该用户帐户分配 Exchange Online 证书时,会自动为该用户创建一个邮箱。若要在 Office 365 管理中心 中创建新用户帐户,请参阅以下主题:You can use the Office 365 admin center to create a new user account. When you assign the user account a license for Exchange Online, a mailbox is automatically created for the user. To create new user accounts in the Office 365 admin center, see the following topics:

使用 Exchange 命令行管理程序 新建邮箱Use the Exchange Management Shell to create a new mailbox

此示例为 Holly Holt 创建了 Exchange Online 邮箱和 Office 365 用户帐户。可选参数 ResetPasswordOnNextLogon 会要求用户在初次登录 Office 365 时重置其密码。This example creates an Exchange Online mailbox and Office 365 user account for Holly Holt. The optional parameter ResetPasswordOnNextLogon will require the user to reset their password the first time they sign in to Office 365.

New-Mailbox -Alias hollyh -Name hollyh -FirstName Holly -LastName Holt -DisplayName "Holly Holt" -MicrosoftOnlineServicesID hollyh@corp.contoso.com -Password (ConvertTo-SecureString -String 'P@ssw0rd' -AsPlainText -Force) -ResetPasswordOnNextLogon $true

通过运行之前的命令创建邮箱时,也会创建一个 Office 365 用户帐户。您必须通过分配许可证来激活此用户帐户。若要在 Office 365 管理中心 中分配许可证,请参阅分配或删除许可证After you create a mailbox by running the previous command, an Office 365 user account is also created. You have to activate this user account by assigning a license. To assign a license in the Office 365 admin center, see Assign or remove a license.

您如何知道操作成功?How do you know this worked?

要检查是否成功创建了新邮箱,请执行以下操作之一:To verify that you've successfully created a new mailbox, do one of the following:

  • 在 EAC 中,导航到收件人 > 邮箱。在邮箱列表中显示的新用户邮箱。在邮箱类型下的类型是用户In the EAC, navigate to Recipients > Mailboxes. The new user mailbox is displayed in the mailbox list. Under Mailbox Type, the type is User.

    单击刷新刷新图标如果在第一个不显示新邮箱。Click RefreshRefresh Icon if the new mailbox isn't displayed at first.

  • 在 Office 365 管理中心 中,验证新用户帐户是否已列出,以及是否已分配了 Exchange Online 许可证。In the Office 365 admin center, verify that the new user account is listed and that it's been assigned an Exchange Online license.

  • 在 Exchange 命令行管理程序 中,运行下面的命令以显示有关新用户邮箱的信息。In the Exchange Management Shell, run the following command to display information about the new user mailbox.

    Get-Mailbox <Name> | FL Name,RecipientTypeDetails,PrimarySmtpAddress,SKUAssigned
    

    如果已为该邮箱分配了许可证,则 SKUAssigned 属性的值为 True。如果尚未分配许可证,则属性值为空白。If a license is assigned to the mailbox, the value for the SKUAssigned property is True. If a license hasn't been assigned, the value is blank.