![如何通过“StatusDetail”过滤 Exchange 2013 新移动请求](https://linux22.com/image/664529/%E5%A6%82%E4%BD%95%E9%80%9A%E8%BF%87%E2%80%9CStatusDetail%E2%80%9D%E8%BF%87%E6%BB%A4%20Exchange%202013%20%E6%96%B0%E7%A7%BB%E5%8A%A8%E8%AF%B7%E6%B1%82.png)
我正在尝试报告“有趣”的动作、错误的、滞后的或缓慢的动作。
我从这个开始
Get-MoveRequest -ResultSize unlimited
| where {$_.status -ne "Completed"
-and ( ( $_.StatusDetail -ne "CopyingMessages")
-and ( $_.StatusDetail -ne "Queued") ) }
| Get-MoveRequestStatistics |sort percentcomplete
| ft displayname, percentcomplete, status, statusdetail, syncstage, baditemsencountered, totalinprogressduration, totalmailboxsize, message, validationmessage, *duration -a
但是对输出没有影响。我尝试过使用括号,但无济于事
答案1
尝试这个:
Get-MoveRequest -ResultSize unlimited |
Where {$_.status -ne "Completed" -and $_.StatusDetail -ne "CopyingMessages" -and $_.StatusDetail -ne "Queued" } |
Get-MoveRequestStatistics |
Format-Table Displayname, Percentcomplete, Status, Statusdetail, Syncstage, Baditemsencountered, Totalmailboxsize, Message, Validationmessage, *duration -AutoSize