The following error is received when attempting to migrate Sidhistory and passwords:
Common AcAdSwitches Error 0xe1100012. Cannot initialize Migration Agent on host DC.domain.local Error 0x80040154. Class not registered
Common AcAdSwitches Error 0xe100004e. Cannot connect to host DC.domain.local Error 0x80040154. Class not registered
Activation AcAdTaskHandler Task Handler, switch SidHistory returned error -519045102
Error 0x8007042b. Cannot install AePAgent. Cannot start service. The process terminated unexpectedly. (Source=AePwd.PwdInstEx.1)
This issue may occur if the Directory Synchronization Agent is running under the local system account (which it does by default).
To resolve it one needs to change the Directory Synchronization Agent Activation Service account from local system to any other user account with enough permissions.
To do that, open Computer Management -> Services snap-in on the computer running the DSA, select Quest Directory Synchronization Agent Activation Service, open its properties, specify an account on the Log On tab, and restart the service.
More details on how to change the service account can be found in solution SOL9900 - During User Migration the Password Copy Fails (0xe100004f. Cannot synchronize passwords) - https://support.quest.com/Search/SolutionDetail.aspx?id=SOL9900