Identifying “onmicrosoft” Email Users

If you use Office 365 and DirSync, a user’s primary email address can end up being username@domain.onmicrosoft.com if not setup correctly.  To identify all users setup this way, connect to Office 365 powershell and run this command:

Get-mailbox -ResultSize unlimited | Select-Object primarysmtpaddress | ? {$_ -clike “*onmicrosoft*”}

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s