Move-ADObject computer across domains

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Edmond Yee Edmond Yee 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40596
    Profile photo of Edmond Yee
    Edmond Yee
    Participant

    I am trying to migrate computers from a child domain up to the parent and am using the following command:

    Move-ADObject -Identity "CN=testcomp,CN=Computers,DC=child,DC=domain,DC=com" -Server childdc1.child.domain.com -Credential $creds -TargetPath "CN=Computers,OU=org,OU=level2,OU=parent,DC=domain,DC=com" -TargetServer parentdc1.domain.com

    I keep getting the error: "The operation could not be performed because the object's parent is either uninstantiated or deleted." Trying it with OU=Computers instead of CN=Computers gives the error: "Move-ADObject : Multiple values were specified for an attribute that can have only one value."

    I have also tried using Get-ADComputer and piping the Move-ADObject command with the same results.

    Has anybody seen this before? Also, what else does this command do aside from moving the object to the new OU path and domain? Does the computer keep it's trust relationship with the parent and just need a reboot and gpupdate to get the parent domain policies? What kind of intervention is needed on the computer once this is run?

    #40614
    Profile photo of Dan Potter
    Dan Potter
    Participant

    -TargetPath "OU=org,OU=level2,OU=parent,DC=domain,DC=com"

    #40675
    Profile photo of Edmond Yee
    Edmond Yee
    Participant

    Dan,

    Thanks for the response. That still results in the multiple values error

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.