Exchang常用命令

get-servercomponentstate -identity srv01

get-mailboxserver

 

==========================================================================

New-MoveRequest -identity liuyan@taoche.com -targetdatabase “HC21”  -BatchName 'Batch 1'
Get-MoveRequest | ? {$_.status -eq "completed"} | Get-MoveRequestStatistics
Get-MoveRequest | ? {$_.status -eq "queued"}

Get-User -OrganizationalUnit 'domain/OU' | New-MoveRequest -TargetDatabase 'MailDB' -BatchName 'Batch 1'
Get-MoveRequest –BatchName 'Batch 1'

==========================================================================

 

#查询数据库中邮箱
Get-mailbox -database dbname
Get-Mailbox -database DBNAME|Get-Mailboxstatistics |sort totalitemsize -desc |ft displayname,totalitemsize,itemcount > D:\report\DBNAME.csv

Get-mailbox mailname

posted on 2021-11-19 20:16  momingliu11  阅读(337)  评论(0编辑  收藏  举报