Here’s the command that lists the Mailboxes by Size and exports it to CSV:
Get-MailboxStatistics -Database "Mailbox Database XXXXXXXXXXXXX" | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBSizes.csv
Made a small discovery the other day. Next to the visible Receive and Send Connectors, there are also Invisible Send Connectors available on the Exchange server. The one I found is called Intra-Organization Send Connector, which is used to transport messages within the organisation, between the Hub transport serves, Edge Transport Server and old Exchange servers. It is not visible in the console or when you use Get-SendConnector command.
Here’s the command to configure protocol logging for Intra-Organization Send Connector:
Set-TransportServer “TRANSPORT SERVER NAME” -IntraOrgConnectorProtocolLoggingLevel verbose
I found this simple explanation on TechNet by accident. My thanks and credit goes to the authors ( AshwinXADM and Thomas Stensitzki).
Exchange 2013 Server Roles
Exchange 2013 has three Roles:
- Mailbox Server Role
- Client Access Server Role
- Edge Server Role
Each organization requires minimum one Mailbox Server Role and Client Access Server Role. The Edge Server Role is optional and is placed in the perimeter network.
Mailbox Server Role Includes:
- Client Access Protocols
- Transport Service
- Mailbox Databases
- Unified Messaging (Except SIP Redirection)
- Handles all activities for active Mailboxes on that Server
Client Access Server Role Includes:
- Redirection (limited)
- Proxy Services for HTTP, POP, IMAP and SMTP
- Thin and Stateless Server
- Does not do any data rendering
- Nothing is queued or stored here (except diagnostic logging)
Edge Server Role includes:
- Transport Service
- Address Rewriting
- Anti-Spam and Anti-Malware filtering
- Attachment filtering
Here’s how to fix the Exchange ActiveSync error Event ID: 1053.
Exchange ActiveSync doesn’t have sufficient permissions to create the "CN=John Doe,OU=Random users,OU=Users,OU=Random OU ,OU=Random Sites,DC=random,DC=com" container under Active Directory user "Active Directory operation failed on DC.random.com. This error is not retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-031521D0, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0
Make sure that the user has inherited permission granted to domain\Exchange Servers and right to allow List, Create child, Delete child of object type "msExchActiveSyncDevices" and doesn’t have any deny permissions that block such operations.
Open the User properties in Active directory and take away the permissions for the object in question and then add it again. This should fix the problem.
Another solution is available on Microsoft Support
PowerShell (EMS) command to enable remote archiving after the mailbox has been migrated to Office 365.
Run the following command on your On-premises Exchange 2010 or Exchange 2013 server.
Enable-RemoteMailbox -Identity MailboxName –Archive
Enable-RemoteMailbox -Identity John.Smith –Archive
Follow these steps:
- On the computer that does not have Exchange installed, create a new folder.
- Copy Jcb.dll, Exchmem.dll, Ese.dll and Eseutil.exe files from the Exchange’s computer’s Drive:\Program Files\Microsoft\Exchange Server\Bin\ folder to the new folder you just created.
- Open Command prompt (run –> cmd) and change the directory to the new folder.
- Run the eseutil command from this folder against any databases that were copied from the Exchange server computer.
You will find more information from this KB article
A while back I had issues with my DPM 2007 and my Exchange 2007 db. DPM 2007 kept telling me that my Exchange 2007 db replica is inconsistent. I found this blog post which helped me. I thought it would be good to add it to my blog as a reminder and to share it with others.