Recently I was asked to look into migrating some on-premise Exchange 2010 archives to Office 365.


In order to do so you must first license each user on Office 365 in order to migrate their archive. I had a fairly large number of users to license in Office 365 so I thought that there was bound to be a script out there to accomplish this. My searches took me to Roman Zarka’s blog however his script would not work if the user was not licensed. So I modified his script to ​check if the user was or was not licensed and then either license them or modify their current license.


The script assumes that you have already installed the Office 365 PowerShell Cmdlets as well as the Sign-In assistant.

 

Visit my blog: http://www.taskrepository.com