1、Exchange 的基本操作
在 Exchange 服务器上的 PowerShell 里进行以下操作
将 Exchange 管理单元添加到当前会话中
add-pssnapin microsoft.exchange*
查看邮件数据库
Get-MailboxDatabase -server "dc"
查询数据库的物理路径
Get-MailboxDatabase -Identity 'Mailbox Database 0761701514' | Format-List Name,EdbFilePath,LogFolderPath
获取现有用户的邮件地址
Get-Mailbox | Format-table Name,WindowsEmailAddress
查看指定用户的邮箱使用信息
Get-Mailboxstatistics -Identity Administrator | Select Dispayname,ItemCount,TotalItemSize,TotalTimeSize,LastLogonTime
获取用户邮箱中的邮件数量,通过该命令还可以列出那些用户未登录过邮箱
Get-Mailbox -ResultSize Unlimited | Get-Mailboxstatistics | Sort-Object TotalItemSize -Descend
2、导出指定的电子邮箱
Exchange Server 2007 中需要使用 ExportMailBox 命令,在 Exchange Serv