14 thoughts on “Moving Mailboxes in Bulk to Office 365

  1. Hi Todd, I have just tried to run this process but I am getting he following error?
    Can not bind argument to parameter ‘Identity’ because it is null
    The CSV file is set out as follows:
    Alias
    whiteel
    abatema
    adamsbr

    So the Identity field (Alias) should not be NULL?
    Do you have any suggestions…

    Regards

  2. Hi Todd,
    I am trying to implement this procedure however I am getting the following error:
    Cannot bind argument to parameter ‘Identity’ because it is null.
    The .csv file is setup correctly:
    Alias
    whiteel
    abatema
    adamsbr

    I have done a quick search but can not find any reference to this exact issue, do you have any suggestions?

    Regards,

      • Okay, so CU9.

        And you ran this command…

        $MAILBOXLIST = Import-CSV “C:\Userlist.csv”

        before this one…?

        foreach ($line in $MAILBOXLIST) {New-MoveRequest -Identity $line.alias -Remote -RemoteHostName hybridserver.domainname.com -TargetDeliveryDomain domainname.mail.onmicrosoft.com -RemoteCredential $ONPREMCREDS -BadItemLimit 1000}

        Also, you ran the commands from the Azure AD PowerShell Console and not the Exchange Management Shell?

        Are your on premise accounts synced to O365 via AAD Connect?

        If so, I’m not sure because I use these commands regularly.

      • Hi Todd,
        Yes to all questions? it is a strange one to be sure.
        Thanks for your quick replies. Maybe i’ll giggle with the script a little and see what is going on.
        Regards

      • Strangely after running it again for the 5th time, that error is no longer present, but I then got a new error

        Turns out I had the FQDN of the hybrid server when I actually needed the auto discover URL name of mail.DomainName

        The three test mailboxes have now migrated successfully, but when I try a bigger list, I get the same original error??

      • Hi Todd, Sorry wrong terminology on my part, it is my OWA URL.
        I have managed to get the larger list migrating over at the moment.
        There must have been something wrong with the initial export CSV I was using as when I replaced the Alias’s from the export into the “test CSV file, they imported correctly.
        Thanks for all your assistance with this,
        Much appreciated.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s