Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Powershell to Change User Domain

$
0
0

Hi All,

Can anybody help me with a powershell script that would enable me to move-spuser but across all web apps and all site collections?

I have used the script posted here to change the user on one site but he is in at least 100 sites and I have more users that need migrating as well.

$user = Get-SPUser -Identity DOMAIN\old_username -Webhttps://site_collection_url
Move-SPUser -Identity $user -NewAlias DOMAIN\new_username

Any pointers would be great!!

Thanks in advance...


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>