pennate 发表于 2018-7-8 09:51:02

Exchange-统计一年新增的邮箱数

  最近在写年终总结,需要统计这一年新增的邮箱数。

[*]  列出2016年新增的邮箱
C:\>Get-Mailbox | Where-Object {($_.WhenCreated).Year -eq 2016}

[*]  统计2016年新增的邮箱数量
C:\>Get-Mailbox | Where-Object {($_.WhenCreated).Year -eq 2016} | Measure-Object -Line
  
  参考:
  Where-Object
  https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.core/Where-Object?f=255&MSPPError=-2147217396
  筛选
  https://technet.microsoft.com/zh-cn/library/dd298043(v=exchg.141).aspx
  Measure-Object
  https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.utility/Measure-Object
  http://281816327.blog.51cto.com/907015/1549934/
页: [1]
查看完整版本: Exchange-统计一年新增的邮箱数