Advertisements

Category: Exchange 2013 PowerShell

In Exchange, mailbox moves and cleanup happen all the time, especially when you upgrading to newer versions etc. Now when you move mailboxes and you not using a 3rd party app like Odin that sits as an extra layer, you cannot see the store size from the web console. In Exchange you can run the […]

Advertisements
Read more

As an IT Admin or Exchange Admin, you might have come across the question “When were the mailboxes created”. In this quick example, we will look at the script you can run to check all users in the Organization or just an individual mailbox. To check all users in Exchange, you can run the following […]

Read more

In exchange, many commands are directed at all mailboxes in the environment, but there is a time when you only want info on a specific organizational unit (OU). It is actually very easy to do, below is a snippet of a script you can use to get the last logon information for an OU which […]

Read more

Here is a quick tip on how to move a few or a couple of hundred Offline address books with the Exchange Management Shell (EMS) by running a single command: If you had to use the Exchange Management Console (EMC), it will take you quite a while to do but with PowerShell you can run […]

Read more

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 […]

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