Archive

Posts Tagged ‘Exchange’

Export Mailbox into a PST from Exchange 2010

March 15, 2017 Leave a comment

Below are the commands required to export mailbox and save in PST format.

# Give permissions to user doing the export

New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Admin

# Create Network Share and give permissions to Exchange Trusted Subsystem read/write

# Start the Mailbox Export

New-MailboxExportRequest -Mailbox first.surname -FilePath \\comp\share

# Start mailbox export with archive

New-MailboxExportRequest -Mailbox first.surname -FilePath \\comp\share -IsArchive

# Check the status of mailbox export request

Get-MailboxExportRequest 

or

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

# When Mailbox export request has been finished. Remove it

Get-MailboxExportRequest | Where {$_.status -eq "Completed"} | Remove-MailboxExportRequest

-Eric

Command to List Mailbox Sizes in Exchange 2010

March 14, 2016 Leave a comment

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

 

-Eric

Invisible Send Connector Exchange 2010

March 9, 2016 Leave a comment

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

-Eric

Understanding Exchange 2013 Server Roles in the Simplest way

March 5, 2016 Leave a comment

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:

  • Authentication
  • 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

-Eric

Exchange ActiveSync Error

March 5, 2016 Leave a comment

Here’s how to fix the Exchange ActiveSync error Event ID: 1053.

Error:
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.
Details:%3

Fix:

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

-Eric

How to Enable Remote Archiving Using Exchange Management Shell

May 7, 2015 Leave a comment

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.

Command:
Enable-RemoteMailbox  -Identity MailboxName –Archive
Example:
Enable-RemoteMailbox  -Identity John.Smith –Archive

 

-Eric

How to use Eseutil on a computer that doesn’t have Exchange Server 2007 installed

September 4, 2009 Leave a comment

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

 

-Eric