When I try to use the following Powershell command with a user who exists in the User Profile Database I get the following error:
Move-SPUser : The parameterless Read method can only be used when this instance was initialized with an SPUser object. At line:1 char:12 + Move-SPUser <<<< -Identity "OLD_DOMAIN\OLD_USERNAME" -NewAlias "NEW_DOMAIN\NEW_USERNAME" + CategoryInfo : InvalidData: (Microsoft.Share...PCmdletMoveUser: SPCmdletMoveUser) [Move-SPUser], InvalidOperationException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletMoveUser
When I attempt to use the following:
$user = Get-SPUser -web http://my.website.url Identity "OLD_DOMAIN\OLD_USERNAME"
I get the following error:
Move-SPUser : At line:1 char:12 + Move-SPUser <<<< -Identity $user -NewAlias > NEW_DOMAIN\NEW_USERNAME + CategoryInfo : InvalidData: > [Move-SPUser], SPException + FullyQualifiedErrorId : > Microsoft.SharePoint.PowerShell.SPCmdletMoveUser
We have completed a domain migration and are now migrating the end users. I have checked the user profile exists but still seeing this error.