Showing posts with label Exchange 2010. Show all posts
Showing posts with label Exchange 2010. Show all posts

24 March 2019

Remove .local address before O365 Migration

I was recently performing an O365 migration for a client who had lots of domain.local aliases.
There was no policy enforcing these addresses, and their accounts weren't picking up email address policies either.

The best way to find out who's got the .local address and then remove it is by running the following commands/scripts:


get-mailbox | where {$_.emailaddresses -like “*domain.local*”}


This will show you who has the domain.local address.  Once you've worked this out, you can then run the following script, which will go through and make sure that address is completely deleted from each mailbox alias.


$users = get-mailbox | where {$_.emailaddresses -like “*domain.local*”}
foreach ($user in $users)
{
$addresses = (get-mailbox $user.alias).emailaddresses
$fixedaddresses = $addresses | where {$_.proxyaddressstring -notlike “*domain.local”}
set-mailbox $user.alias -emailaddresses $fixedaddresses
}


The bold sections is where you need to update the domain name to whatsoever your .local address is.

30 May 2016

Unable to Access Exchange Management Console 2010

Recently I was on a new client's server and I accessed the Exchange Management Console for Exchange 2010.  When expanding "Microsoft Exchange On-Premises", I received the following error message:


In order to get around this, you must look at the Security Group called Organisation Management.  Check the membership of this group, and ensure that the user account you're using to open up EMC is within this group.  In this case, my user account hadn't been added to this group which was why I received that error message.



After adding my user account to the group, I clicked Retry within EMC, and it worked perfectly for me.