Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the exchange mail instructions?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces what exchange email instructions have, which can be used for reference by interested friends. I hope you will gain a lot after reading this article. Let's take a look at it.

First, statistics on the number of mailboxes. Query the total number of mailboxes in the entire Exchange organization (slow, discreet, memory consuming) Get-Mailbox-ResultSize Unlimited | Measure-Object

two。 Query the number of mailboxes in the specified database

Get-MailboxDatabase Get-Mailbox-Database demo-ResultSize Unlimited | Measure-Object

3. Query the number of mailboxes in the specified server

Get-ExchangeServer Get-Mailbox-Server demo | Measure-Object

4. Query mailboxes created within 7 days

Get-Mailbox | Where-Object {$_ .WhenCreated-ge ((Get-Date) .AddDays (- 7))}

5. Query the mailbox created in October

Get-Mailbox-ResultSize Unlimited | Where-Object {($_ .WhenCreated) .month-eq 10}

6. Query mailboxes created in 2017

Get-Mailbox-ResultSize Unlimited | Where-Object {($_ .WhenCreated) .year-eq 2017}

7. Query mailboxes with Agent send permission

Get-Mailbox-ResultSize Unlimited | Get-ADPermission | Where-Object {$_ .extendedrights-like "* send-as*"}

8. Query mailboxes with full access permission

Get-Mailbox-ResultSize Unlimited | Get-MailboxPermission | Where-Object {$_ .acce***ights-eq "* fullaccess*"}

9. Query the mailbox logged in within 10 days

Get-Mailbox-ResultSize Unlimited | Get-MailboxStatistics | where {$_ .lastlogontime-lt (Get-Date) .AddDays (- 10)}

10. Query mailboxes that have never been logged in

Get-Mailbox-ResultSize Unlimited | Get-MailboxStatistics | where {$_ .lastlogontime-eq $null}

Second, statistics on the used space of mailboxes

1. Check the user's mailbox status

Get-MailboxStatistics demo | fl

two。 Show the usage of all mailboxes

Get-MailboxDatabase | Get-MailboxStatistics | Select-Object displayname,Totalitemsize | Export-Csv C:\ Users\ fanyunxiao\ Desktop\ mail.csv Thank you for reading this article carefully. I hope the article "what are the exchange email instructions" shared by the editor will be helpful to you? at the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report