Hi Everyone,
I'm running an Intra-Forest AD migration in Windows 2008 R2 Forest using ADMT 2.3.
I'm creating a script to move SharePoint 2013 user's sites (Move-SPUser), this is a part of the script:
The first Move-SPUser (claim-based) always fails with the following error:
An error was encountered while retrieving the user profile.
+ CategoryInfo : InvalidData: (Microsoft.Share...PCmdletMoveUser:SPCmdletMoveUser) [Move-SPUser], UserNot
FoundException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletMoveUser
+ PSComputerName : shpserver.contoso.com
What do you think might go Wrong in the first Move-SPUser?
Thanks.
I'm running an Intra-Forest AD migration in Windows 2008 R2 Forest using ADMT 2.3.
I'm creating a script to move SharePoint 2013 user's sites (Move-SPUser), this is a part of the script:
$user1=Get-SPUser -Identity "i:0#.w|$($sourceDomain)\$($userName)" -Web "$website" -ErrorAction silentlycontinue $user2=Get-SPUser -Identity "$($sourceDomain)\$($userName)" -Web "$website" -ErrorAction silentlycontinue if($user1) { $out=Move-SPUser -Identity $user1 -NewAlias "i:0#.w|$($targetDomain)\$($userName)" -confirm:$false -IgnoreSID } if($user2) { $out=Move-SPUser -Identity $user2 -NewAlias "$($targetDomain)\$($userName)" -confirm:$false -IgnoreSID }
The first Move-SPUser (claim-based) always fails with the following error:
An error was encountered while retrieving the user profile.
+ CategoryInfo : InvalidData: (Microsoft.Share...PCmdletMoveUser:SPCmdletMoveUser) [Move-SPUser], UserNot
FoundException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletMoveUser
+ PSComputerName : shpserver.contoso.com
What do you think might go Wrong in the first Move-SPUser?
Thanks.