Migrating user permissions from Old domain to New domain

To migrate users in from Old doamin [old\abc] to New domain [new\abc] in a bulk, use the below STSADM command.

$Data = Import-Csv “C:\Migration.csv”
Set-Location “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN”
foreach($Item in $Data)
    .\stsadm.exe -o migrateuser -oldlogin $Item.Old -newlogin $Item.New -ignoresidhistory

Note: You need to save the list of user accounts int he below format, in a CSV file before running the above script.


Tip: You can divide the list into multiple files and run the script on all WFEs opening multiple script windows to save time


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