After a successful domain migration, you may be in a situation where it is necessary to remove the sidHistory attributes from objects in your new domain. There are many ways to do this, and many migration tools provide that capability straight out of the box. You could of course use something like ADSIEdit to manually edit each object, but this can be time consuming if there are more than a handful of objects to update.
I’ve just been through the process of a domain migration on my home setup, and being a bit of a scripting junkie didn’t want to go through a manual update process (even though there were only five accounts being migrated). I used a variation of the script in knowledgebase article 295758 which performed the job admirably. Admittedly, it took me longer than a manual migration would have done when there were only five accounts, but if you’re in the hundreds or even thousands, this script could save you a lot of time.