Advertisements

Category: Exchange 2016 PowerShell

Exporting mailboxes is great but what if you only wanted information for a certain period as you need it for whatever reason, legal, manager, etc. Well using the Exchange Management Shell (EMS) you can run the following command to export the data: null $Users = Get-Content “C:\Users\User1\Desktop\doc.csv” foreach ($User in ($Users)) {New-MailboxExportRequest -Mailbox $User -ContentFilter […]

Advertisements
Read more

When doing mailbox moves on Exchange, you want to know how far they are progressing etc. In the Exchange Management Console (EMC) you can add the Percent Complete column to see the Percentage per mailbox as shown below: This is okay but if you like me rather prefer using Powershell, then you can run the […]

Read more

There are many ways in PowerShell to check the mailbox database copy status in Exchange, here are some examples from the Exchange Management Shell (EMS): Blanket check.Per DAG check.Per Server check. Get-MailboxDatabaseCopyStatus * The above command runs across all servers and databases in the environment. Below is the next example. Get-MailboxDatabaseCopyStatus -Identity dag1* The above […]

Read more

In Exchange you will do loads of Export requests to PST but over time this list grows and when you eventually want to find an export request or remove a server you can’t because it still has the export requests. To find the export requests, you can run a single command: Get-mailboxexportrequest -status completed This […]

Read more

In Exchange, you can throttle the number of connections that a HUB Transport Server can have open to a remote domain, the default value for the field “MaxPerDomainOutboundConnections” is 20. To change the value, you can run a simple command from the Exchange Management Shell(EMS): Set-TransportServer -Identity HUB1 -MaxPerDomainOutboundConnections 10 Don’t forget to restart the […]

Read more

With mailbox moves, you do get the few that fail and instead of updating each one with the -BadItemLimit switch you can do this one liner command to update them all before resuming them, here is the command: Get-MoveRequest | Set-MoveRequest -BadItemLimit 500 -AcceptLargeDataLoss Give it a few minutes to update and resume the failed […]

Read more

Exchange comes with default tarpit levels which work for some organizations but not others, you can change these if you see a delay in delivery, to change it is very easy and you need to do this with PowerShell. Launch the Exchange Management Shell (EMS) and run the following command: Get-ReceiveConnector -Identity “Server1\Default Frontend Server1” […]

Read more