Problem to migrate SIDHistory with command line

Gilles T 5 Reputation points
2023-11-15T15:37:07.4366667+00:00

For a migration inter-forest, SIDHistory is migrated fine with Wizard.

But with commandline, there is always an error that has no sense "ERR2:7615 SID History cannot be updated for xxx. You must be an administrator in the source domain."

The account used is administrator on source domain

ADMT is installed on a domain controller.

How to solve that ?

Regards

Gilles

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,684 questions
0 comments No comments
{count} vote

4 answers

Sort by: Most helpful
  1. Daisy Zhou 25,836 Reputation points Microsoft Vendor
    2023-11-16T02:00:42.3133333+00:00

    Hello Gilles T,

    Thank you for posting in Q&A forum.

    You can check sIDHistory migration additional dependencies and Additional requirements for migrating sIDHistory with the command line or scripting interfaces in the link below.

    How to troubleshoot inter-forest sIDHistory migration with ADMTv2
    https://learn.microsoft.com/en-us/troubleshoot/windows-server/identity/inter-forest-sidhistory-migration-with-admt

    I hope the information above is helpful.

    If you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    0 comments No comments

  2. Gilles T 5 Reputation points
    2023-11-16T09:45:57.25+00:00

    Hello

    Yes I already do all checks

    I remember that there is no problem with the wizard. The problem is only with command line

    Regards

    Gilles


  3. Evandro Boa Semedo 371 Reputation points
    2024-11-15T15:27:39.35+00:00

    Hi,

    The same problem here.

    0 comments No comments

  4. Evandro Boa Semedo 371 Reputation points
    2024-11-15T15:34:23.5966667+00:00

    The same problem here.

    Hi,

    I am migrating Exchange accounts between forests from one Exchange environment to another using the Exchange native scripts alongside ADMT. However, I encounter the error below when migrating Active Directory users via ADMT's command line to merge passwords, SIDs, and ADUser. Strangely, using the graphical interface (GUI) does not produce any errors, and the SID and password are copied correctly.

    <#

    2024-11-13 18:31:33 ERR2:7615 SID History cannot be updated for TESTEuser1. You must be an administrator in the source domain.

    2024-11-13 18:31:33 WRN1:7392 SIDHistory could not be updated due to a configuration or permissions problem. The Active Directory Migration Tool will not attempt to migrate the remaining objects.

    2024-11-13 18:31:33 Operation Aborted.

    #>

    I followed all the steps in the two links below in a lab environment, and everything worked perfectly. However, in production, I am encountering issues. I would appreciate guidance on how to resolve this.

    ADMT 3.2 Interforest Migration - Part 2

    https://social.technet.microsoft.com/wiki/contents/articles/16208.admt-3-2-interforest-migration-part-2.aspx

    ADMT 3.2 Interforest Migration - Part 3

    https://learn.microsoft.com/en-us/archive/technet-wiki/16621.admt-3-2-interforest-migration-part-3

    I am using this script, which worked flawlessly in the lab environment, but in production, it fails with errors only via the command line, while the ADMT console works fine:

    PowerShell ADMT Script

    https://github.com/duffney/PowerShell/blob/master/ActiveDirectory/Migrate-ADMTUserCLI.ps1

    To isolate the issue, I tested using direct commands on the ADMT server, but the same problem occurred.

    Test Without Script

    admt user /N "TESTEuser1" /SD:"SOURCEDOMAIN.LOCAL" /SDC:"DC01.SOURCEDOMAIN.LOCAL" /TD:"TARGETDOMAIN.LOCAL" /TDC:"AD01.TARGETDOMAIN.LOCAL" /TO:"Hosting/0123456789" /UGR:YES /FGM:YES /CO:MERGE /MSS:YES /PS:"MTDC07.SOURCEDOMAIN.LOCAL" /PO:"COPY" /UX "HomeMDB,HomeMTA,showInAddressBook,msExchHomeServerName,mail,msExchRBACPolicyLink,msExch*,msRTCSIP*,msOnlineSIP*" /UMO:YES PS: The problem only occurs when copying SIDHistory via power shell. Perform a migration without SIDHistory, removing the /MSS:YES parameter, it works, except that the graphical interface goes without problems.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.