Powershell Function to Get Messages in Exchange

If you are an Exchange server administrator, you more than likely spend a fair amount of time searching the Message Tracking logs.  The data provided by these logs can be helpful in finding all messages with a particular subject or sent by a certain user during a specific time frame.  Of course, there are two ways to search the Message logs:  the Exchange Admin Center (EAC) or Exchange Management Shell.  Using the GUI is perfectly fine, if that is your preference.  However, if you are having to perform searches on a regular basis, the EMS is the more efficient option.

Continue reading “Powershell Function to Get Messages in Exchange”

Exchange Powershell Tip

Do you want to know how to get the mailbox count per database on a particular server?  Use the following cmdlet to get that information:

Get-Mailbox -Server servername | Group-Object -Property:database | select Name,Count | FT -AutoSize

Remember to change “servername” to the name of your Primary Mailbox server.

Here’s an example of the command output:

example