Troubleshooting Mailbox Migration Error “You can’t use the domain because it’s not an accepted domain for your organization.”

While migrating users via MRS between organizations (especially to Exchange Online), a pretty common error that I run across is: You can’t use the domain because it’s not an accepted domain for your organization. This error is generated because the MailUser object of the user you’re attempting to migrate has a proxy address attached to…

12

Removing Proxy Addresses from Exchange Recipients

I saw a request come through the other day for a method to remove unwanted proxy addresses for contacts.  I’d had some code sitting around from a project a few years back and decided to freshen it up, and maybe add some newer tricks. So, the original idea was to select a bunch of users…

4

Export and Import Calendar Processing Information

During my current project, it became necessary to capture additional calendar processing parameters that are not preserved during a normal hybrid move–such as booking policies. Some of the challenges that I faced with this tool: Blank or unpopulated attributes Conversion of sAMAccountName values to PrimarySmtpAddress Multiline attributes with special characters Attributes that were set for…

2

Mailbox Delivery Settings

From time to time, I run into environments where things are configured in “non-standard” ways.  Granted, we don’t have a lot of specificity or documentation around some attribute configurations because the default configuration has been tested by the people who created the software and works in almost every conceivable situation.  However, we do run into…

0

ActiveSync Device and User Report for Office 365 D, MT, and Exchange 2010+

Today, I had a customer ask me for an ActiveSync device report.  Normally, this is a somewhat simple task (Get-Mailbox | Get-ActiveSyncDevice), but in a large environment with hundreds of domains representing different agencies or business units, that is kind of an unwieldy report to run (as well as including a lot of data for…

6

Fix those IMCEAEX NDRs

I had a customer migrate some mailboxes a few weeks ago, and they’re now just getting some NDRs.  Here’s a sample NDR: To fix this, you can take the NDR that you receive, copy/paste it into this function, and then take the resultant decoded x500 address and add it back to the proxyAddress array for…

2

Backup and Restore Distribution Groups from Exchange or Exchange Online

I’ve been involved in a lot of Exchange migrations over the years, to and from all sorts of different environments. On a current engagement, I had to export a ton of cloud-managed distribution lists and their members from Office 365 / Exchange Online Dedicated and import them into Office 365 Multitenant.  I wrote a script…

1

Wipe Content from an Exchange Online Mailbox

This tool has been updated with new options.  See https://blogs.technet.microsoft.com/undocumentedfeatures/2017/10/19/update-to-wipe-exchange-online-mailbox-script/. Periodically over the years, I’ve run into content problems trying to migrate data to Exchange Online using third-party migration tools–they somehow get stuck, don’t like something existing in the destination mailbox (or didn’t write it properly in the first place) and you need a clean…

3

Add an Email Address Template to all Email Address Policies

So your company just bought another company.  Or you're moving to Exchange Online. Or you registered a new domain.  Any reason, really, that you could want an email address template added to all of your Email Address Policies. Not so bad if you have one or two policies  But what if you have 10?  Or…

0