New answers tagged

3

You can use below snippet Get-SPUser -Web http://server/sites/yoursite | Where { $_.IsDomainGroup } AD group is treated as a special user. So this can be find using the filter IsDomainGroup $SPWebApp = Get-SPWebApplication https://*******.com/ foreach ($SPSite in $SPWebApp.Sites) { write-host -foregroundcolor green "Working on Site ...


0

This will work: $user = Get-SPUser -Identity "i:0#.w|domain\4510014" -Web http://webUrl Move-SPUser -Identity $user -NewAlias "domain\jasmith" -IgnoreSid Note that Move-SPUser and stsadm -o migrateuser run the exact same function.


2

The user object needs to exist in a UIL. That's the primary responsibility of stsadm/Move-SPUser: to migrate users within the UIL to the new identity. The User Profile Service can, in certain scenarios, automatically migrate a user when it has detected a change, but from the sounds of it, you don't need to do any work for this particular user.



Top 50 recent answers are included