Exchange 2010 get information about mailbox size

Information about the amount of space that occupies a particular mailbox, we can easily preview the Exchange Management Console.

Unfortunately, if we want to get more information about the mailboxes, or mailboxes that meet that special condition, the realization of such a task in the EMC will be very time consuming.

In such a case comes to us from the console using the Exchange Management Shell (EMS) in which the PowerShell commands, we can get a lot of interesting information on the mailboxes located on Microsoft Exchange.

Display all information about the mailbox:

Get-MailboxStatistics john.smith@domena.com | FL

Continue reading

Exchange Server 2010 Monitoring Management Pack SCOM re-released 14.03.0038.004

New Exchange 2010 Management Pack was released on 08/31/2012.

New version has number 14.03.0038.004

This management pack includes scripts and rules to effectively monitor Exchange 2010 and report on performance, availability, and reliability of its server roles.

After users compains last Management Pack for Exchange 2010 was pulled, we mention about this here:

Microsoft Exchange 2010 Management Pack 14.3.38.2 has been pulled

The changes in the updated Exchange 2010 Monitoring Management Pack include:

  • Fixes to Alerts – at times two events were logged for the same event.
  • Ensure Correct Values are read.
  • Log the event on local server where the TS is running.

Here is a location of the updated Management Pack:

Exchange Server 2010 Monitoring Management Pack download

Exchange 2010 Powershell how to count mailboxes

We often encounter the need to determine how many mailboxes in a given time is in different databases or around the Microsoft Exchange Server.

Such information can be easily obtained by using the Exchange Management Shell cmdlets for Exchange 2010.

Examples of use:

Determination of the number of all mailboxes in an Exchange Organization

 

(Get-Mailbox -ResultSize unlimited).count

ResultSize option we use if our Exchange environment has more than 1000 mailboxes

Number of mailboxes in different databases:

Get-Mailbox -ResultSize unlimited | Group-Object -Property:Database | Select-Object Name,Count

Continue reading

Resume-MailboxDatabaseCopy for all databases on server

Sometimes (for example, after a small disk array failure ;)) you need to resume failed and suspended database copy. We can do that with this  command: resume-mailboxdatabasecopy .

But what if there is a lot of databases ?

In this case we can use this command to resume replication for all databases on specific server:

get-mailboxdatabasecopystatus -server “server_name” | resume-mailboxdatabasecopy

Also for suspending replication we can use this command:

get-mailboxdatabasecopystatus -server “server_name” | suspend-mailboxdatabasecopy

Search-Mailbox search and remove emails

Each administrator of the Microsoft Exchange Server had certainly met or will meet with a situation where you have to find a specific email in the mailboxes, and sometimes even remove it.

In Microsoft Exchange 2010 to search mailboxes, we can successfully use the Search-Mailbox command.

But first make sure that we can run the command Mailbox-Search and
New-MailboxImportRequest
.
If you try to run the New-MailboxImportRequest and reveive the message:

 “The term ‘New-MailboxImportRequest’ is not recognized as the name of a cmdlet”

 

This means that we do not have appropriate access rights.

Giving the appropriate permissions:

In Active Directory, create a universal security group such ExchangeImportExport_Allowed

Continue reading