Exchange 2013 PowerShell
Exchange 2010 and higher:- Test-ReplicationHealth
Here is a quick tip on how you can check the health of your server that is part of a database availability group (DAG). The command to run is as follows using the Exchange Management Shell (EMS): Test-ReplicationHealth -Identity <ServerName> Below is the 2010...
Exchange 2010 and higher:- Remove a database copy and database using PowerShell
Removing an Exchange Database copy or a database should not be hardwork, especially when it can be done with the Exchange Management Shell. **Take note, if you have circular logging enabled, you need to firstly disable it before you can remove an Exchange database...
Exchange 2016:- Get DB size with a simple command
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 2010:- Check when user mailboxes were created using PowerShell
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 2010/2013/2016:- Get last logon time for mailbox in an OU
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...
Exchange 2010:- Moving an offline address with PowerShell
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...
Exchange 2010:- Export Mailbox using a date range with 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: $Users = Get-Content...
Exchange 2010:- Move requests with a bit more info using PowerShell
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...
Exchange 2010/2013/2016:- Check Mailbox Database Copy status in various ways with PowerShell.
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...
Exchange 2010/2013/2016: – Clear export requests
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...