So, today, I received an email from one of my esteemed colleagues asking how we could get B2B Azure AD tenant guests to show up in the Office 365 GAL. I thought, “Yeah, that should be something that’s possible. I mean, they have email addresses.”… [ Continue reading ]
Report proxy addresses not in Accepted Domains
Like as the waves make towards the pebbled shore, so do our proxy addresses hasten to multiply.
At least, that’s how it seems. As is the organizational ebb and flow, business objectives change, new business units are spun up, old projects are turned down, and you may need to add or remove proxy addresses in your Exchange environment to account for that. … [ Continue reading ]
Update to the Create-LabUsers tool – now, with bigger foo
Update: I’ve added a shortlink for this tool: http://aka.ms/createlabusers.
In my quest to make the perfect tool for creating a realistic Lab Environment, I have added yet another feature, based on requests that I imagine people are making but have not yet told me about. … [ Continue reading ]
Update to Create-LabUsers tool
Update: I’ve added a shortlink for this tool: http://aka.ms/createlabusers.
Because you didn’t ask for it, I went ahead and added to it.
Well, that’s a lie. I actually had some really great ideas and feedback, so I’ve added a few new features that I wanted to draw attention to:
- Detect existing Exchange session – If you cancel the script to create mailboxes while it’s running, you previously needed to run a Remove-PSSession to close the open Exchange session.
Create realistic lab users
Update: I’ve added a shortlink for this tool: http://aka.ms/createlabusers.
In testing out some of my other tools over the last few weeks, I’ve found it necessary to create a some test users. A lot of test users. Not a normal “a lot,” either. … [ Continue reading ]
Detecting Outlook / Exchange data exfiltration
*Updated 2021-11-29 with new links to the Audit Scripts*
While I was working on a script to configure Office 365 Secure Score settings, I came up with a few scripts that I thought would be helpful in monitoring your messaging environments. … [ Continue reading ]
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 it that is NOT an accepted domain in your target organization or tenant.… [ Continue reading ]
Removing Proxy Addresses from Exchange Recipients
This script and the accompanying post have been updated.
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.… [ Continue reading ]
Export and Import Calendar Processing Information
UPDATE: The final script has been relocated to the PowerShell Gallery: https://www.powershellgallery.com/packages/ExportImport-CalendarProcessing/5.1
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 in customer environments when writing this tool:
- Blank or unpopulated attributes
- Conversion of sAMAccountName values to PrimarySmtpAddress
- Multiline attributes with special characters
- Attributes that were set for the wrong recipient type
The first thoughts I have when building a tool generally involve four concepts:
- What data do I need to gather/export
- What format is the source data
- What format do I need to save it in
- How do restore/import that data back into the target?
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. … [ Continue reading ]
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 out-of-scope users).… [ Continue reading ]
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 the recipient.… [ Continue reading ]
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. … [ Continue reading ]
Wipe Content from an Exchange Online Mailbox
This tool has been updated with new options. See https://bhr.62e.myftpupload.com/2017/10/19/update-to-wipe-exchange-online-mailbox-script/. This tool also has a new home: https://www.powershellgallery.com/packages/Wipe-ExchangeOnlineMailbox/
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 mailbox to restart the process. … [ Continue reading ]
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? … [ Continue reading ]