创建DPM恢复数据库:New-MailboxDatabase -Recovery -Name RDB -Server dag01.dag.com -EdbFilePath "d:\rdb\rdb.edb" –LogFolderPath "d:\rdblog\"
卸载数据库:Dismount-Database -Identity RDB
删除数据库:Remove-MailboxDatabase -Identity RDB
获取邮件组成员:Get-DistributionGroupMember -identity "dyxnet" | Export-Csv d:\dyxnet.csv
获取所有成员:Get-user -ResultSize unlimited| Export-Csv d:\all.csv -Encoding "utf8"
邮件追踪:Get-MessageTrackingLog -server dag01 -ResultSize Unlimited -Start "8/26/2015 4:24PM" -End " 8/26/2015 4:27PM" -Sender [email protected]
邮件删除(一定小心使用):search-mailbox -identity [email protected] -searchquery subject:"邮件主题" -deletcontent
获取用户数据库中所有人员,大小:Get-Mailbox -Database userdb004 | Get-MailboxStatistics |sort totalitemsize -desc |ft displayname,totalitemsize,itemcount > d:userdb004
删除邮箱可恢复邮件的数据:Search-Mailbox zhang.san -SearchDumpsterOnly -DeleteContent
查看用户邮箱数据库信息:Get-MailboxStatistics zhang.san | fl
刷新数据库命令:Get-MailboxStatistics -Database "UserDB09" | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }