Friday, October 6, 2017

Powershell : migrate Exchange 2010 on-prem mailbox to Office 365 and more.....

Hi Mates,
here below a script that I've used to migrate some users to Office 365.
The script contains a lot of comments that should explain sufficiently what it does during the several steps.
Consider that I had a bunch of needs : change some group membership , change the quota, apply email address policy and so on.
For sure it is amendable but at least it's a decent starting point.

Anyway few words about it : my friend's infrastructure is a little bit complex and the migration tasks should foresee some group membership change (regarding the archiving system, regarding the MDM policy and so on). So the final migration will be splitted in two separate phases.
The base is that you have to place a TXT file in a specific path (that for sure you can change) typing inside it the display name of the users that you want to migrate.
There's also a sort of normalization part that should delete extra spaces and tab chars ......having the text file clean you should avoid errors. The syntax, in my case , of a classic user display name to write in the file is : Schiavone Domenico.
Anyway ....here you are.....if something is not clear let me know and I'll try to explain it better.

Hope this help.
Bye

4 comments: