Recently in writing year-end summary, you need to count the number of new mailboxes this year.
c:\>Get-mailbox | Where-object {($_. whencreated). Year-eq 2016} |
C:\>get-mailbox | Where-object {($_. whencreated). Year-eq 2016} | Measure-object-line |
650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/8B/89/wKiom1hQukSSyEWjAABCjpCkc4E548.jpg "title=" 123. JPG "alt=" wkiom1hqukssyewjaabcjpckc4e548.jpg "/>
Reference:
Where-object
Https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.core/Where-Object?f=255&MSPPError =-2147217396
Screening
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/
This article is from the "Zhao Dongwei blog" blog, make sure to keep this source http://zhaodongwei.blog.51cto.com/4233742/1882543
Count the number of new mailboxes in a year