统计一周内创建的用户

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

 

统计一周内创建的邮箱

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

 

 

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

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