Exchange 2010
Anything interesting and related to Microsoft Exchange 2010
-
Provisioning Layer initialization failed error when running a cmdlet in Exchange Management Shell
I’ve had the below error a few times this year when trying to open the Exchange Management Shell or running a cmdlet. To get this working browse to another Exchange 2010 server and copy the ScriptingAgentConfig.xml file from the working server and paste it in the same directory (as per below) on the non-working server. The file can be found under your Exchange Installation by default c:\Program Files\Microsoft\Exchange Server\V14\Bin\CmdletExtensionAgents\
-
Event ID 490, ESE – edgetransport (7868) Transport Mail Database: An attempt to open the file “\Queue\trn.chk” for read / write access failed with system error 5 (0x00000005): “Access is denied”
Yes I know. The title for this post is extremely long but thought that it would be easier to find if it’s more descriptive. In any case. We had to rebuild a multi role server and the Hub Transport role was also installed. After the install we checked that all is good and I found that mail were queued up on the server. Further investigation showed that the Hub Transport service was not started so I tried to start it, which failed. The event logs showed the below error. I then checked the permissions of the trn.chk file and the queue folder and found that it did not match the…
-
Unable to connect a disconnected mailbox – User not found error when trying to connect a mailbox to a user in Exchange
We’ve had a few instances where we need to disconnect a mailbox and reconnect it to a new user account for a user. This should be easy right? Well not always. It’s happened more than once where we try to use the Exchange Management Console to connect the mailbox to the user account but Exchange can’t find the user account. Have a look in Active Directory and the account shows up. You then try to connect the mailbox to the user account using the Exchange Management Shell with the same results. user not found. See below on how to get this issue resolved: 1. Open adsiedit.msc (start, run and type…
-
E-Mail delivers to Deleted Items folder
We had a shared mailbox where all the mail sent to the mailbox delivered to the deleted items folder. To resolve this do the following: 1. Open Exchange Management Shell 2. Type Get-CalendarProcessing “mailboxname” | fl and press enter 3. If AutomateProcessing shows AutoAccept in the returned results then run the next cmdlet 4. Set-CalendarProcessing “mailboxname” -automateprocessing none 5. Wait for replication and check that Get-CalendarProcessing “mailboxname” | fl shows that it’s set to :none We verified after running the above that mail delivered to the mailbox deliveres to the Inbox as expected.
-
Unable to logon to a reconnected mailbox in Exchange 2010
I tested a few things today and one of them was to disable my mailbox in Exchange 2010. After running Clean-MailboxDatabase databasename I was able to see the disconnected mailbox and reconnect it to my user account. I then tried to login into my mailbox using Outlook and Outlook WebApp. It looked like it was connecting in Outlook but the mailbox showed disconnected. Outlook Webapp returned with an error that my account is disabled. To rectify this I just ran Clean-MailboxDatabase databasename again from Exchange Power Shell and was able to logon in Outlook WebApp and Outlook. Note that running this cmdlet did not show the disabled mailbox immediately so don’t be alarmed, just…
-
High Memory Pages/Sec on an Exchange 2010 Server
We had an issue on an Exchange 2010 multi role server this week where the average Memory Pages/Second exceeded 3000. Microsoft recommends that the average Pages/Second should be below 1000. After some investigation we found that the antivirus software was scanning the Exchange folders and log files. For a quick test we disabled the antivirus agent on the server and the average Pages/Second dropped significantly. There could be countless reasons for above normal Memory Pages/Second issues but checking your antivirus software is a quick check. The exclusions in the antivirus software was then configured and the issue was permanently resolved. Note that you should never scan your Exchange log files…
-
Export mailbox sizes in Exchange 2010 using Exchange Management Shell
Thought I’d share two scripts today. I use both daily to export mailbox sizes to a csv file for reporting purposes. These scripts will export the following: User Display Name, Database where the mailbox is homed ,the mailbox’s Total Item Size, Item Count in the mailbox and the Storage Limit Status Export a report on mailbox sizes on a specific server: Get-Mailbox –Server the server name –ResultSize Unlimited | Get-MailboxStatistics | Select-Object DisplayName, Database, TotalItemSize, ItemCount, StorageLimitStatus | Sort TotalItemSize, -Ascending | Export-CSV driveletter:\foldername\reportname.csv Export a report for mailboxes homed on all your mailbox servers: Get-ExchangeServer -Domain your domain name | Get-MailboxStatistics | sort TotalItemSize -Descending | select DisplayName, Database, StorageLimitStatus,…
-
Export all mailboxes from a Database to pst – Exchange 2010
I have been tasked to export all mailboxes on an Exchange 2010 environment to pst. The reason for this is to provide Mimecast with the mailbox data to ingest into the clients archive that is hosted within Mimecast. We enable journaling on Exchange but need to ingest all mail that was sent and received before journaling was switched on. Note that you need to have Exchange 2010 SP1 installed to run the below. The mailbox export request is processed by the CAS server role. The path to the folder that you export to needs to be an UNC path, pointing to shared local folders won’t work. Make sure you have…
-
Meeting requests sent to a room mailbox, replaces the Subject, with the Senders name
We received a call today where a meeting request sent to a Room mailbox shows the meeting organiser’s name in the subject line. This can be rectified by running the following: Exchange 2010/2013: Set-CalendarProcessing -identity “meeting room name” -DeleteComments $true -AddOrganizerToSubject $true -DeleteAttachments $true -DeleteSubject $true Exchange 2007: set-mailboxcalendarsettings -identity “meeting room name” -deletesubject $false -addorganizertosubject $false Hope this makes your life a bit easier.