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

Exchange common commands (constantly update ing...)

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. Command to grant security groups full access to shared mailboxes

Add-MailboxPermission mailbox group alias-User "AD group alias"-Acce***ights Fullaccess-InheritanceType All

two。 Authorize the security group to the shared mailbox representative to send permission commands

Add-ADPermission "mailbox group alias"-User "AD group alias"-ExtendedRights "Send AS"

3. Enable all non-enabled users in AD (Shenzhen-DB)

Get-User-RecipientTypeDetails User-Filter {UserPrincipalName-ne $Null} | Enable-Mailbox-Database "database name"

4. Query the delivery of a mailbox:

Get-MessageTrackingLog-ResultSize unlimited-Start "08 send 2016"-the full name of the mailbox queried by End "08 Measure-Object 29 Sender"-EventId "send"-2016 | Measure-Object

5. Which emails failed to be sent in this mailbox:

The full name of the mailbox queried by Get-MessageTrackingLog-ResultSize unlimited-Start "06 FAIL 13 Sender 2016"-End "06 Universe 14 Universe 2016"-EventId "FAIL"-2016

6. Use the Fail parameter to retrieve the number of messages that failed to be sent within a time period:

Get-MessageTrackingLog-ResultSize unlimited-Start "06 Fail 2016"-End "06 Fail 14 Measure-Object 2016"-EventId "Fail"-Server "mailbox database name" | Measure-Object

7. Move command:

New-MoveRequest-Identity "mailbox name"-TargetDatabase "target mailbox database name"

8. Query the number of mailboxes stored in the mailbox database:

Get-Mailbox-Database Built-in | Measure-Object

9. Use the command to export the specified mailbox as PST

New-mailboxexportrequest-mailbox kangwen-filepath "share path format is\ ip\ folder"

10. The example searches for messages in liy's mailbox whose subject contains the phrase "delivery delayed", and then deletes them from the source mailbox.

Search-Mailbox-Identity "liy"-SearchQuery 'Subject: "delivery delayed"'-DeleteContent

11. This example searches all mailboxes in your organization for messages that contain the phrase "Your bank statement" in the subject of the mailbox, and then deletes them from the source mailbox.

Get-Mailbox | Search-Mailbox-SearchQuery 'Subject: "Your bank statement"-DeleteContent

twelve。 This example searches all mailboxes in your organization for messages that contain the phrase "Your bank statement" in the subject of the mailbox, and then deletes them from the source mailbox.

Get-Mailbox | Search-Mailbox-SearchQuery 'Subject: "Your bank statement"-DeleteContent

13.Exchange2013 uses the EMS command to associate an existing AD group

Get-group testgroup | Enable-DistributionGroup-displayname "90001.testgroup"-PrimarySmtpAddress "testgroup@devtest.cn"

Message properties can be set through display and primarysmtpaddress

The scope of premise groups requires generic groups

14. Hide contacts Global address Book

Set-Mailcontact name-HiddenFromAddressListsEnable $true

True (hide) or false (not hide)

15. Hide the user's global address book

Set-Mailbox name-HiddenFromAddressListsEnable $true

True (hide) or false (not hide)

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