Exchange 邮件导出

常用命令

连接服务器

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn

查看邮箱用户

Get-Mailbox

获取所有邮箱名称

Get-Mailbox -ResultSize unlimited

查看邮件导出请求

Get-MailboxExportRequest

导出全部邮件

Get-Mailbox -OrganizationalUnit Users -Resultsize unlimited |%{New-MailboxexportRequest -mailbox $_.name -FilePath ("\\localhost\c$\test\"+($_.name)+".pst")}