Migrating Distribution Groups to Office 365, part 1

I am most of the way through a hybrid-mode migration from Exchange 2010 to Office 365. There are a few stages in a hybrid migration. During the process, your on-premises Active Directory database and Exchange directories are synced to the cloud so that mailboxes that have been migrated still appear in the on-premises directory for mailboxes that have not migrated and vice versa. Distribution groups […]

Read Me Leave comment

Disable the Clutter Function in Office 365

Most systems administrators (and probably just about everyone else in an Information Technology role) receive a large number of status alerts from monitoring systems and automated processes. These alerts are very important for staying on top of trends and potential problems with your networks and servers. Even so, we delete most of these messages without reading opening them because we can usually tell by the […]

Read Me Leave comment

Message bounces with StorageError when attaching another email

If you attach one email to another, you might get this bounce message (aka “NDR” or Non-Deliverable Report): John Doe (john.doe@domain.com) The e-mail system had a problem processing this message. It won’t try to deliver this message again. Diagnostic information for administrators: Generating server: MAILSERVER.domain.com john.doe@domain.com #550 5.6.0 M2MCVT.StorageError; storage error in content conversion ## You probably have Outlook configured in “online” mode. In other […]

Read Me Leave comment

“Header file length is zero” when exporting a mailbox

For years, I’ve been importing and exporting mailboxes with relatively no problems, when I started getting this error when exporting a number of mailboxes: [PS] C:\Windows\system32>New-MailboxExportReqeust john.doe -FilePath \\server\share\john.doe.pst Unable to open PST file ‘\\server\share\john.doe.pst’. Error details: Header file length is zero. If this file is from a previously failed pst export, please delete the file and resume the export. + CategoryInfo : NotSpecified: (0:Int32) […]

Read Me Leave comment

Remove Broken ActiveSync Device Partnerships

A user has hit his maximum mobile device count on your Exchange server, but when you try to remove an unused device that hasn’t synced in over a year, you get this error: If you look at the details of the error in the wizard, you’ll notice that the ActiveSyncDevice ID includes the user’s OrganizationalUnit. If you check the user’s current OU, chances are very […]

Read Me Leave comment

Clean Deleted Users from Shared Mailbox Folder Permissions

I don’t know about you, but it really bugs me to see dead accounts in the ACLs of mailbox folders. I wrote this PowerShell script to clean them up whenever I see them. It gets a list of all of the folders in a mailbox, checks each one for any permissions entries where the username = “NT User:S-1*”, and removes those entries, leaving all others […]

Read Me Leave comment

Running Exchange 2010 PowerShell Scripts Using Task Scheduler

I have a number of complex PowerShell scripts for performing employee onboarding/offboarding, mailbox export request cleanup, and other tasks. Scripts that use the standard cmdlet set, the Active Directory module, or Quest Activeroles AD Management snapin worked fine, but Exchange 2010 and Lync 2010 cmdlets didn’t despite loading the Exchange Management and Lync snapins. Those cmdlets didn’t seem to do anything at all and the […]

Read Me Leave comment