none
move-adobject results in "No credentials are available in the security package" RRS feed

  • Question

  • Hello Everyone,

    While attempting to move an AD user account from a parent domain to a child domain, and specifying service account credentials I receive an error stating "No credentials are available in the security package"

    Example:

    $secpasswd = ConvertTo-SecureString “password” -AsPlainText -Force
    $AdminCredentials = New-Object System.Management.Automation.PSCredential (“serviceaccount@domain.com”, $secpasswd)

    Move-AdObject -Identity "user account distinguishedName " -Server "Parent domains DC" -TargetPath "Target OU distinguishedName" -TargetServer "Child domains DC" -Confirm:$false -Credential $AdminCredentials

    However if I move an account from the child domain to the parent the same code works.  

    Any help on how to resolve this would be great.

    Regards

     


    • Edited by igibason Thursday, November 9, 2017 5:47 PM
    • Moved by Bill_Stewart Thursday, January 25, 2018 10:12 PM Abandoned
    Thursday, November 9, 2017 5:47 PM

All replies

  • The accounts used must be trusted in the domains an all group membership must be updateable by both accounts.


    \_(ツ)_/

    Thursday, November 9, 2017 7:33 PM