Source Platform: All
Destination Platform: Exchange 2010/Office 365
When migrating to Exchange 2010/Office 365 the following error is seen:
Unable to run Powershell (Init)
This indicates there was a problem running the PowerShell init script. Check the exact error message for more details. If the error message:
Message: Cannot validate argument on parameter ‘Session’. The argument is null. Supply a non-null argument and try the command again
is seen, then this indicates there was a problem connecting to the PowerShell session.
If this error is seen when generating user lists on Exchange 2010, it probably means you need to modify the ‘Get User Init Script’ for Exchange 2010. See this article as the same changes should be made to the Get User Init Script.
If the init script does not start with the line
$ErrorActionPreference = 'Stop', then you should add this as the first line of the init script. The init script should then look something like the following (although this may change depending on whether you are migrating to Exchange 2010 or Office 365). When this change has been made, run the migration again and a more descriptive error message should be produced.