Platform:
Source: All > Destination: Microsoft Office 365
Problem
Using the default PowerShell scripts migrating to Office 365/Exchange 2010/2013/2016, the following error is returned.
Invalid assignment expression. The left hand side of an assignment operator needs to be something that can be assigned to like a variable or a property
Solution
This error can occur due to code that no longer works correctly with newer versions of PowerShell. To manually correct the problem, edit the following line:
if ('[!user-type]' == 'Resource') {
To read:
if ('[!user-type]' -eq 'Resource') {
Comments
0 comments
Please sign in to leave a comment.