When trying to move and AD User using the following command:
move-adobject 'CN=John Doe,OU=_Users,OU=ABC,DC=xyz,DC=com' -targetpath 'OU=Disabled Accounts,OU=_Users,OU=ABC,DC=xyz,DC=com' -targetserver someDC.xyz.com
I'm receiving an error:
Move-ADObject : Source and destination for the cross-domain move operation are identical. Caller should use local move operation instead of cross-domain move operation.
The Object and it's target both reside in the same domain. In fact there is only one domain. I've verified the DN is correct on both ends. I've also looked up the GUID's and used them with the exact same results. I have several user's and OU's I'm attempting to run this on and am getting the same error regardless of OU and user. If I do ont specify a -targerserver parameter, I receive the error:
Move-ADObject : The operation could not be performed because the object's parent is either uninstantiated or deleted
Is there something wrong with my AD structure?
Update : After trying it on nearly every OU I could, I've found the command does work right on some. The one's it does NOT work on were from an old company Novel migration ages ago. Coincidence? What would the Novel to AD migration have possibly left on the OU to cause this not to work?
Update2: Turns out it doesn't work on some OU that were newly created also.
Update3:No
results yet; however, the result does seem to be related to the user object and not the OU. Newly created object can me moved regardless of OU.
- Edited by Breaker1253 Wednesday, April 02, 2014 1:03 PM Update