Switching domains for sharepoint doesn’t seem to have a SID or account migrate for all users. The stsadm tool does support migrating one user for all sites which is really quite nice. To finish the task of getting all the users from the old domain to the new domain logins I started with exporting the user list. Under Active Directory find your users OU. Click View and add remove columns. Add the column Pre-Windows 2000 Logon Name. Right click on the users OU and export list to CSV. After opening this in Excel you should have 3 columns from the export by default. The script below can be paste into D2. This uses the column C to get their usernames. Click and drag fill down square to the bottom of your user list. The path to run this command from might differ depends on install, open command line and change directory to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN. Then you can paste all of column D into command line window.
=CONCATENATE("stsadm -o migrateuser -oldlogin olddomain\",C2," -newlogin newdomain\",C2)
No comments:
Post a Comment