on-internet
← Community

Powershell : Move-ADObject : The operation could not be performed because the object's parent is either uninstantiated or deleted

Stack Overflow ·

I have a problem with a script in Powershell. I want to transfer users from an OU (parent OU : "IT" for exemple) to a "child OU" => "Users". ("IT">"Users"). Here is the error: $name = "CN=Michael Allen,OU=IT,DC=Adatum,DC=com" Move-ADObject "CN=Michael Allen,OU=IT,DC=Adatum,DC=com" -TargetPath "OU=IT,OU=Users,DC=Adatum,DC=com" Move-ADObject : The operation could not be performed because the object's parent is either uninstantiated or deleted At line:5 char:1 + Move-ADObject "CN=Michael Allen,OU=IT,DC=Adatum,DC=com" -TargetPath "OU=IT,OU=Us ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Comments

Sign in or sign up to comment and upvote.

No comments yet.