Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the exchange mail instructions?

Shulou Source: shulou.com Published: 2022-06-01 00:28:19 11月12日 Update

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!

Tags: Mailbox query article quantity instruction mail permission login statistics slow never value interest memory at the same time situation data database more month Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi vpn MariaDB Shulou Tech Info