统计一周内创建的AD用户

Get-ADUser -Filter -Properties | where{$_.WhenCreated -gt (get-date).adddays(-7)}

统计一周内创建的Exchange邮箱

Get-Mailbox -resultsize unlimited | where{$_.WhenCreated -gt (get-date).adddays(-7)}| ft Name,whenCreated -Autosize

统计一周内特定数据库中创建的Exchange邮箱

Get-MailboxDatabase DB* | Get-Mailbox-resultsize unlimited | where {$_.WhenCreated -gt (get-date).adddays(-7)}| ftName,whenCreated -Autosize