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