如:筛选 title 包含manager的用户等
, L D, r5 \" |/ b$ JGet-User –Filter { Title –Like "*Manager*"}
" F/ Y( X3 Q( |! uget-user |where {$_.department -eq "it"}
& J0 ?! m9 G: |& Y2 [6 Awww.msclub.org.cn连接用户4 x' ^" {2 b' q, j2 |3 f
Connect-Mailbox -Database "Mailbox Database" -Identity rock100
) K" ]0 }* k2 m 通过运行下面的命令来检索了所有断开的邮箱的邮箱统计信息。此示例使用了 WHERE 子句。$_ 变量用于指定通过管道传递的对象。-ne 运算符表示"不等于"。 Get-MailboxStatistics -Database "mailbox database" | where {$_.disconnectdate -ne $null} |