Count the number of new mailboxes in a year

Source: Internet
Author: User

Recently in writing year-end summary, you need to count the number of new mailboxes this year.

    • List new mailboxes for 2016

c:\>Get-mailbox | Where-object {($_. whencreated). Year-eq 2016}
    • Count the number of new mailboxes added in 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.