Exchange 2010 SP2 RU3 move mailbox speed up

If you are using RU3 for Microsoft Exchange 2010 SP2 you can have issue with mailbox move.
When you move mailboxes between databases you will have an issue with long time to finish move mailbox. It’s caused by some sort of cleanup tasks which have to be finish before move mailbox is marked as completed.

When you have RU3 this “cleanup task” is repeated for 5 times every 30 seconds for each mailbox. This is caused by RU3 which change parameter maxCleanupRetries and set it for 5.

To resolve this issue you have to uninstall RU3 or change parameter maxCleanupRetries.

So on every CAS Exchange Server you need to open folder:

C:\Program Files\Microsoft\Exchange Server\V14\Bin\

find file MSExchangeMailboxReplication.exe.config

edit and find parameter maxCleanupRetries

Next you need to change value from 5 to 1.

When you save this file after modification you need to restart  MSExchangeMailboxReplication Service

 

Print Friendly

Exchange 2010 configure Site Scope for Autodiscover

In Exchange 2010 environment with many Active Directory Sites we have to provide access for clients connecting from multiple sites to our Exchange Server.

When our Exchange and Active Directory environment is spreads across country or world, we often use AD Sites. Then we have to make sure that every AD Site is supported by ours Exchange CAS servers Autodiscovery.

So we need to add AD Sites to AutoDiscoverySitesScope in our Exchange CAS Server.

First we should check existing configuration of CAS servers. To do this we can write below command:

Get-ClientAccessServer | fl Name, AutoDiscoverSiteScope

 

We will get list of all Exchange CAS with AutoDiscoverSiteScope.

If we don’t know what AD Sites are in our environment we can get list of AD Sites using:

Get-AdSite

When we want to add AD Site to Exchange CAS we need to use Set-ClientAccessServer CMDlet like below:

Set-ClientAccessServer -identity MXCAS01 -AutoDiscoverSiteScope "Location Site 1, Location Site 2"

Continue reading

Print Friendly

Exchange Server 2010 create dynamic distribution group from security group members

 

When you have Active Directory Security Group which add permissions to some share or other resources, sometimes you need to send email to all group members to inform about some changes.

You can choose all users from Security Group but what if this group has more than 100 users.

You can create Exchange Dynamic Distribution Group.

When you want to create Exchange Dynamic Distribution Group, and add all members of security group to this dynamic group, it’s not so easy.

You can’t do this using Exchange Management Console.
Because when you want to create dynamic distribution group from Exchange Management Console you can choose Users with Exchange Mailboxes

Continue reading

Print Friendly

Exchange 2010 SP2 Rollup 5-v2 installation error 80070643

 

If during installation of Rollup 5-v2 for Microsoft Exchange Server 2010 SP2 you receive error 80070643, it’s caused by WMF 3.0 (Windows Management Framework 3.0).

Windows Management Framework 3.0 is installed with following windows updates for Microsoft Windows 2008 or Windows 7  (KB2506146 and KB2506143)

So before installation of Rollup 5-v2 check and uninstall these KB2506146 and KB2506143 and WMF 3.0

 

Also remember to run installation of any Rollup with  elevated privileges Run as Administrator

 

Print Friendly

Exchange Server 2010 and 2007 Issues with Windows Updates KB2506146 and KB2506143

Watch for Windows Updates KB2506146 oraz KB2506143 and error

Exchange Server 2010 or Exchange 2007

 

Microsoft recently released updates KB2506146 and KB2506143 for operating systems Microsoft Windows 2008, 2008 R2 and Windows 7.

If you have Microsoft Exchange 2010 or Microsoft Exchange 2007 don’t install these updates.

Exchange Server 2010 and Exchange Server 2007 have some issues with these updates KB2506146 and KB2506143.

These updates will install Windows Management Framework 3.0 with PowerShell 3.o which is not supported by Exchange Server 2010 nor 2007.

You can read about updates here:

  • KB2506143 is the WMF 3.0 update for Windows Server 2008 R2 SP1 and Windows 7 SP1;
  • KB2506146 is the WMF 3.0 update for Windows Server 2008 SP2.

 

After you install these updates, your Exchange Server 2010 or 2007 system can be unavailable or unusable. It also include workstations with Windows 7 and Exchange Management Tools.

Continue reading

Print Friendly

Search-Mailbox delete emails sent to Distribution Group

 

When someone will send email to wrong distribution group you can easly delete this email using Search-Mailbox CMDlet.

All you need it’s to get distribution group members and run for each of them search-mailbox.

Below you can find example how to remove email sent to distribution group Important_DL     with subject Confidential Report.

Get-DistributiongroupMember Important_DL | Search-Mailbox -SearchQuery subject:"Confidential Report" -DeleteContent -Force:$TRUE

 

Above command will delete email with subject Confidential Report from users mailboxes which are members of Important_DL distribution group.

You can also use others attribute to define email properties to delete.

Below you can find more properties which you can use:

Continue reading

Print Friendly

Search-Mailbox kind Advanced Query Syntax AQS

 

While you are using Search-Mailbox to find, delete or to copy items from mailbox you can use Advanced Query Syntax parameter to define what kind of items you are looking for.

Advanced Query Syntax  helps users to better define and narrow their searches.

Following AQS parameters we can use to narrow search:

  • File kinds: folders, documents, presentations, pictures and so on.
  • File stores: specific databases and locations.
  • File properties: size, date, title and so on.
  • File contents: keywords like “project deliverables,” “AQS,” “blue suede shoes,” and so on.

 

For Exchange Search-Mailbox CMDlet we can easily use following parameters from File kinds:

File Type:   Example 
 Contacts kind:contacts
 E-mail kind:email
 Instant Messenger conversations kind:im
 Meetings kind:meetings
 Tasks kind:tasks
 Notes kind:notes

Continue reading

Print Friendly

Exchange Server 2010 mass export mailboxes to pst file

Last time we wrote how to export mailbox from Exchange 2010 to pst file and import items from pst file to Exchange 2010 mailbox.

Exchange 2010 export import mailboxes

Now we will explain how to export few mailboxes at once from Exchange 2010.

When you want to export few mailboxes at once to .pst files you have to get aliases of those mailboxes and then run New-MailboxExportRequest in ForEach loop.

Below we present few examples how to export mailboxes with specified conditions:

To export mailboxes from specified mailbox database use:

ForEach ($mbx in (Get-Mailbox -Database DatabaseName)) {
 New-MailboxExportRequest -Mailbox $mbx -FilePath "\\server\share_pst\${$mbx.Alias).pst" 
}

Continue reading

Print Friendly

Exchange 2010 export import mailboxes

 

Service Pack 1 for Exchange 2010 changed mailboxes import export to .pst file.

After you install Service Pack 1 for Exchange Server 2010 you need to use new CMDlet’s to import or export mailboxes:

  • New-MailboxExportRequest - to export mailbox
  • New-MailboxImportRequest - to import mailbox

To be able to export or import mailbox you need to meet following requirements:

  • have Export Import RBAC rights
  • have network share where you will export mailbox to .pst file

 

Assigning needed rights to export import mailbox from Exchange 2010:

When you write New-MailboxExportRequest in EMS (Exchange Management Console) and you will receive error that this command is not recognized, it means you don’t have adequate permissions.

You have to add Mailbox Import Export role for specified user or security group.

This security group should be universal.

Below command will add necessary permissions for security group MBX_imp_exp:

New-ManagementRoleAssignment -Name "Import Export Mailbox Admins" -SecurityGroup "MBX_imp_exp" -Role "Mailbox Import Export"

Continue reading

Print Friendly

Exchange 2010 last logon time to mailbox

 

Sometimes we need to find when user logged to mailbox for the last time.

To achieve this we need to use  Get-MailboxStatistics CMDlet

Below command will display LastLogonTime for mailbox JSmith:

Get-MailboxStatistics JSmith | select DisplayName, LastLogonTime

 

If we are using shared mailboxes we also should display user account which were used to log to mailbox.
This command will display mailbox name, LastLogonTime and user account used to logon:

Get-MailboxStatistics JSmith | select DisplayName, LastLogonTime, LastLoggedOnUserAccount

 

When we want to get logon time information for all mailboxes in database or in mailbox server MX01, we need to use Get-Mailbox CMDlet, and pipe result to Get-MailboxStatistics

Continue reading

Print Friendly