Using Export-Mailbox Powershell Command

Import/Export-Mailbox powershell cmdlets have replaced Exmerge. Below are various ways to use export-mailbox command to export to PST file.

note: you will need these rights to perform these tasks
  • Exchange Server Administrators role and local Administrators group for the source server and the target server
  • Full access to the source and target mailboxes
1. export contacts folder from a user’s mailbox
Export-Mailbox -Id obitest11 -IncludeFolders ‘contacts’ -PSTFolderPath C:pstfilesobitest11.pst
2. export sent items from a user’s mailbox
Export-Mailbox -Id obitest11 -IncludeFolders ‘sent items’ -PSTFolderPath C:pstfilesobitest11.pst
3. Export data received between june 14th, 2007 through 6/14/2008
Export-Mailbox -Id obitest11 -StartDate “06/14/07” -EndDate “06/14/08” -PSTFolderPath C:PSTFilesobitest11.pst
4. To use filters to specify which items in the source mailbox to include in the export, run the following command:
Export-Mailbox -Identity obitest11 -TargetMailbox ExportMailbox -TargetFolder MyData -ContentKeywords “merger” -AttachmentFilenames “*orgchart*” -StartDate “03/01/2006 12:01:00” -RecipientKeywords tony@domain.edu
5. Use this export-mailbox command to archive deleted items to pst and delete the “deleted items folder” contents on server mailbox
Export-Mailbox -Id obitest11 -IncludeFolders ‘deleted items’ -PSTFolderPath C:pstfilesobitest11.pst -DeleteContent
6. Export entire mailbox to PST file
Export-Mailbox -id obitest11 -PSTFolderPath C:pstfilesobitest11.pst
7. Import entire mailbox to PST file

Import-Mailbox -id obitest11 -PSTFolderPath C:pstfilesobitest11.pst 

How to Delegate Management of Distribution Group Membership to a User

To use the Exchange Management Shell to delegate management of distribution group membership to a user 

Run the following command:

Add-ADPermission -Identity <name of distribution group> -User <name of user> -AccessRights WriteProperty -Properties “Member” 
For example, to grant Demetria the right to add members to the Enteprise Web Services Department distribution group, run the following command:
Add-ADPermission -Identity “Enterprise Web Services” -User “Demetria” -AccessRights WriteProperty -Properties “Member” 

How to Assign a mail enabled security group review permission on a room mailbox calendar

To add a mail enabled universal security group to a room mailbox calendar, so that they can review calendar, please follow these steps
1. Create the room mailbox. Note that room mailbox user account is disabled by default
2. Assign full access to the room using the security group
3. Have the manager(who is a member of the security group) login into his/her mailbox and open the room mailbox as well. (see other blog post on how to open another mailbox within your profile)
4 Open the calendar(belonging to room mailbox) and assign reviewer permission to the group
You are done. Now every member of that group can go to file, open other users folder, choose calendar and they can search for the room

admin moves user from exch2003 to 2007. mailbox is identified as legacy in the console

synopsis: 
user(admin) moves a user from exchange 2003 to exchange 2007 using exchange 2007 console, the moved mailbox shows up as legacy mailbox and user is not able to login
Error:
Although the mailbox was moved to the target Exchange server, an error occurred while the policies were being applied. Proxy address policies, Unified Messaging settings, managed content settings, and Exchange ActiveSync settings may not be set correctly. Active Directory operation failed on server. This error is not retriable. Additional information: Insufficient access rights to perform the operation.

resolution:
Using powershell, run
set-mailbox alias -applymandatoryproperties
user will now be able to logon