How to Export Mailboxes with Exchange Server 2010 SP1(带状态查看,清除请求,归档备份)

想要挪空间,就得邮箱数据库导入导出,转来转去。

备份邮件导入导出的。

以下帖子,超实用的。

干干净净。洗洗更健康~~~~~

~~~~~~~~~~~~~

http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1/

Exchange Server 2010 Service Pack 1 introduced a new method for exporting mailboxes called Mailbox Export Requests.  This new method replaces the previous Export-Mailbox command.

Before we look at how to create a new mailbox export request in Exchange 2010 SP1 there are a few things that you should understand.

Firstly, no accounts are granted the rights to export mailboxes by default.  You need to explicitly grant these rights, even to accounts that are organization administrators.

Secondly, the mailbox export request is processed by the Client Access server role.  Because multiple Client Access servers can exist in a site the request could be processed by any one of them.  To ensure that the path to the export PST file is valid for any Client Access server it has to be a UNC path to network share, not a local path.

Granting User Rights for Mailbox Exports in Exchange 2010 SP1

The first step is to grant the right to export mailboxes to an account in your organization.  In the Exchange Management Shell run the following command.

New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator

If you’re logged with that user already simply restart your Exchange Management Shell session to be granted access to the new cmdlets.

Creating a Network Share for Mailbox Exports in Exchange 2010 SP1

Next we need to create the network share that will be used as the file path for the exported PST files.  All that is required here is a network share that the Exchange Trusted Subsystem group has read/write permission to.

Exporting a Mailbox with an Exchange Server SP1 Mailbox Export Request

With everything configured properly we can now use New-MailboxExportRequest to start the mailbox export.  The only two required parameters for the command are the file path to the export PST file, and the name of the mailbox to export.

[PS] C:\>New-MailboxExportRequest -Mailbox alan.reid -FilePath \\esp-ho-ex2010a\pst\alan.reid.pst

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... Queued

To view the status of the request use the Get-MailboxExportRequest cmdlet.

[PS] C:\>Get-MailboxExportRequest

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... InProgress

You can also see more detail about the mailbox export request with Get-MailboxExportRequest.

[PS] C:\>Get-MailboxExportRequest -Name MailboxExport | fl

RunspaceId     : c48a9069-e572-4c65-80ea-773e61e5337e
FilePath       : \\esp-ho-ex2010a\pst\alan.reid.pst
SourceDatabase : MB-HO-01
Mailbox        : exchangeserverpro.net/Company/Users/Head Office/Alan.Reid
Name           : MailboxExport
RequestGuid    : 9de3a722-0c82-4e34-98bf-0ff624c47c16
RequestQueue   : MB-HO-01
Flags          : IntraOrg, Push
BatchName      :
Status         : InProgress
Protect        : False
Suspend        : False
Direction      : Push
RequestStyle   : IntraOrg
OrganizationId :
Identity       : exchangeserverpro.net/Company/Users/Head Office/Alan.Reid\MailboxExport
IsValid        : True

An easy way to see the progress of all mailbox export requests is to pipe Get-MailboxExportRequest into the Get-MailboxExportRequestStatistics cmdlet.

[PS] C:\>Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Name                                   Status                    SourceAlias                           PercentComplete
----                                   ------                    -----------                           ---------------
MailboxExport                          InProgress                Alan.Reid                             20

Exporting an Archive Mailbox with Exchange Server SP1 Mailbox Export Request

You can also export a user’s Personal Archive using mailbox export requests simply by adding the -IsArchive parameter to the command.

[PS] C:\>New-MailboxExportRequest -Mailbox alan.reid -FilePath \\esp-ho-ex2010a\pst\alan.reid.pst -IsArchive

Completing the Mailbox Export Request

When a mailbox export request is completed it remains on the server until it is removed by an administrator using Remove-MailboxExportRequest.

To see all of the completed mailbox export requests run this command.

[PS] C:\>Get-MailboxExportRequest | where {$_.status -eq "Completed"}

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  exchangeserverpro.net/Company/Users/Head Of... Completed

And to clear all completed mailbox export requests from Exchange run the following command.

[PS] C:\>Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest
时间: 2024-10-28 17:57:24

How to Export Mailboxes with Exchange Server 2010 SP1(带状态查看,清除请求,归档备份)的相关文章

如何解决Exchange Server 2010 SP1添加或删除数据库副本的错误

如果您的环境中的Exchange Server 2010 SP1是从Exchange 2010 RTM或者 Exchange 2010 SP1 Beta升级上来的,当您在EMC中执行删除数据库副本和添加数据库副本或者在EMS中执行remove-mailboxdatabasecopy或者add-mailboxdatabasecopy命令时可能会遇到下面错误. 删除数据库副本时可能会遇到下面错误提示: 返回栏目页:http://www.bianceng.cnhttp://www.bianceng.c

《Exchange Server 2010 SP1/SP2管理实践》一2.3 部署内部网络环境

2.3 部署内部网络环境 Exchange Server 2010 SP1/SP2管理实践 内部网络模拟一个真实的企业网络,将部署一台域控制器.一台证书服务器以及多台Exchange服务器,构成一个真实的网络应用平台,为读者展现Exchange需要的所有基础组件.内部网络域名为"book.local",创建用户后缀为"book.local".内部网络申请的公网域名为"book.com",邮件服务器名称为"mail.book.com&qu

《Exchange Server 2010 SP1/SP2管理实践》一1.1 Exchange 2010和2007的异同

1.1 Exchange 2010和2007的异同 Exchange Server 2010 SP1/SP2管理实践 Exchange Server 2010比之前的版本提供了更强大的功能,在易用性.可靠性.可管理性等方面有了长足的进步,虽然在体系架构上与Exchange Server 2007基本相同,但在某些功能上又截然不同.Exchange Server 2010包括标准版和企业版两个版本,关于版本说明建议参考Exchange联机丛书. 1.1.1 管理平台的相似之处 Exchange S

《Exchange Server 2010 SP1/SP2管理实践》一1.2 本书中服务器的概念

1.2 本书中服务器的概念 Exchange Server 2010 SP1/SP2管理实践 本书中,经常提到多种不同的服务器类型,因此希望读者在阅读之前能够了解每种类型代表的实际意义. 1.2.1 独立服务器 操作系统(任何版本的Windows服务器操作系统)安装完成后,运行该操作系统的计算机就成为一台独立服务器.该服务器可以独立部署应用程序.最明显的特征是该服务器没有加入到"域"中,是一个独立的个体. 1.2.2 成员服务器 独立服务器添加到"域"中之后,就成为

《Exchange Server 2010 SP1/SP2管理实践》一2.5 网络之间连通性的测试

2.5 网络之间连通性的测试 Exchange Server 2010 SP1/SP2管理实践 内部网络设置的邮件服务器IP地址为192.168.0.31,公网域名mail.book.com,外部网络设置的邮件服务器IP地址为10.0.0.1,公网域名为mail.ytdaily.com.读者根据本章内容配置完成后,不同网络之间即可正常连通.解析目标服务器. 2.5.1 内部网络测试 登录内部网络中任何一台服务器,打开MSDOS命令行窗口,执行如下命令测试. "whoami"命令查看当前

《Exchange Server 2010 SP1/SP2管理实践》一第1部分 搭建实验环境

第1部分 搭建实验环境 Exchange Server 2010 SP1/SP2管理实践本部分包括第1章和第2章内容.第1章介绍学习Exchange应该了解的基本知识,第2章介绍搭建Exchange实验环境,为读者提供完整的虚拟演示环境,模拟邮件从内部网络到外部网络之间的传递过程.本部分为读者提供了详细的环境搭建视频.

《Exchange Server 2010 SP1/SP2管理实践》一2.4 部署外部网络环境

2.4 部署外部网络环境 Exchange Server 2010 SP1/SP2管理实践外部网络的概念是相对内部网络而言的,外部网络主要用来接收和回复内部网络发来的电子邮件. 2.4.1 外部网络服务器虚拟机说明 外部网络部署1台运行Windows Server 2003 R2的域控制器,安装Exchange Server 2003 SP2邮件系统.内部域名为"ytdaily.local",公网域名为"ytdaily.com",电子邮件服务器名称为"ma

《Exchange Server 2010 SP1/SP2管理实践》一第1章 学习Exchange应该了解的基本知识

第1章 学习Exchange应该了解的基本知识 Exchange Server 2010 SP1/SP2管理实践本书中提到的Exchange Server 2010,泛指SP1和SP2两个版本,如果没有特别说明介绍的内容适用于两个版本.在开始之前,需要Exchange管理员了解Exchange 相关的基本知识,详细信息建议参考Exchange Server 2010联机手册. 本章要点 Exchange 2010和2007的区别 本书中服务器的概念 本书中域控制器的概念

《Exchange Server 2010 SP1/SP2管理实践》一第2章 搭建Exchange实验环境

第2章 搭建Exchange实验环境 Exchange Server 2010 SP1/SP2管理实践为了提高读者对Exchange系统的理解,本书模拟邮件在互联网中的传递过程,将网络分为3部分:内部网络,外部网络以及域名解析网络.内部网络部署Exchange Server 2010,是本书实践的主要目标.外部网络存在的目的是接收和回复内部网络发来的邮件.域名解析网络负责解析"模拟"公网中内部网络和外部网络申请的公网域名,从而使读者能进一步了解真实的企业环境. 本章要点 规划Excha