Trouble moving AD User with Move-ADObject

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. Is there some "local move" operation I should be using instead?

I've actually tried both the combination of several different OU's and several different users, making sure to remove all the group memberships from the user also. Still seem to be generating the same error =/
Edit: Perhaps something is set on the OU to prevent mass movement of objects? Sort of like accidental deletion?
AFAIK, the accidental deletion flag will only stop you from moving the OU itself, not moving a user into it.
Okay, some other ideas (you've probably tried all of these though..):
1 - Try with a different account.
2 - Try from a different PC.
3 - Try running directly on a DC (and try using the -Server parameter to force that DC to be used if it continues to fail).
4 - If you're running an older version of PowerShell, try updating.
I wish I could be of more help, but I just can't replicate this error no matter what I try.
Don't retire TechNet! -
(Don't give up yet - 12,700+ strong and growing)

Similar Messages

  • HT1451 I moved my entire itunes file folder to a public folder by mistake and now I'm having trouble moving it back with all of my playlists in tact.

    I tried to create a situation where my daughter and I could share our itunes libraries on the same computer.  I was following all of the steps but inadvertently moved the entire itunes folder from to the public one instead of just moving the media.  I tried to cancel the operation but it failed.  Now I can't seem to move it back to it original place.  All of my playlists are gone and everything is in iCloud.  Is there a way to recover this?   This is so frustrating.  I have windows running vista.  Please help!

    Yes, provided all the media is inside the iTunes Media folder, which is in turn inside the main iTunes folder (which is the standard arrangement) you should be able to move the iTunes folder from <User's Music> to any other path and shift-start-Tunes (option-start-iTunes on a Mac) to reconnect to it.
    If the media folder has split out to another drive in the past, or media is stored outside of the iTunes Media folder, then things get a bit more complicated. I can go into details should it be necessary.
    tt2

  • How to change moving average price with movement type 501

    Hi Gurus,
                         Our client procures stock item with P-Card and use the movement type 501 to receive into the stock. The value of these items are updated with the moving average price, most of the time the current purchase price is different than current moving average price, so client wants to change the moving average at the time of receiving the goods into the system. Can some one explain is it possible or not. If possible how can we adjust the price? Client doesnu2019t want to go modify the price with other transaction. They want to modify while receiving with MIGO.
    Thanks,
    Vikram

    Hi
    You need to goto transaction OMJJ, select the movement type as 501.
    Then double click on "Field selection-Enjoy transaction".
    Add the field EXWBR & make it optional.
    Now when you goto MIGO & enter 501 movement type you will find the Ext amount in LC field on Quantity tab page.
    Enter the amount in this field during the GR.
    Regards
    Prasad

  • Need help with a script for moving bulk users to another OU and removing/assigning groups

    I've never used PowerShell before and have been asked to track down a script that can move bulk users from one OU to another, and remove and assign new group membership. I've been googling it for about 30 minutes and haven't really gotten anywhere. If
    somebody can point me in the right direction or give some tips I'd greatly appreciate it. I'm sure this kind of task has been done by several people in similar environments I just haven't been able to find those people/examples. 

    Here's what I've got so far...
    Moving to new OU
    CSV constructed like below...
    DN  
                                                                                                                                                    TargetOU
    “CN=John R, OU=BB,OU=ES,OU=Students,OU=OSD,DC=usd233,=DC=local”
                          "OU=PRT,OU=MS,OU=Students,OU=OSD,DC=usd233,DC=local"
    Import-Module activedirectory
    $UserList = Import-Csv "c:\yourCSVhere.csv"
    foreach ($User in $UserList) {
    $User.DN
    $User.TargetOU
    Move-ADObject -Identity $User.DN -TargetPath $User.TargetOU
    Would this work? I also need to remove the user from two groups and add them to two different groups as well. Would I need to use the addUsertoGroups and removeUserfromGroups commands?

  • Move-ADObject errors on DistinguishedName on some user accounts.

    Hi, I have this code below. Strange behavior I'm seeing in our AD environment. Some users are moved into the correct OU and some get an error. Why would I get the below error on only some accounts and not all? I tried putting quotes around the $DN and $OU
    but that didn't seem to help. Thanks
    $DN = $user.DistinguishedName
        $DN.SubString($DN.IndexOf("OU="),($DN.Length - $DN.IndexOf("OU=")))
     If ($DN.SubString($DN.IndexOf("OU="),($DN.Length - $DN.IndexOf("OU="))) -ne ($OU)) 
            {Move-ADObject -Identity $DN -TargetPath $OU }
    Move-ADObject : The operation could not be performed because the object's parent is either uninstantiated or deleted
    At G:\MarcG\Scripts\ADP\ADP to AD Process.ps1:94 char:10
    +         {Move-ADObject -Identity $DN -TargetPath $OU }
    +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (CN=Del Rosario\...compmed,DC=org:ADObject) [Move-ADObject], ADException
        + FullyQualifiedErrorId : The operation could not be performed because the object's parent is either uninstantiated or deleted,Microsoft.ActiveDirectory.Management.Commands.Mo 
       veADObject

    I don't recommend using the .NET Substring method to determine portions of a distinguished name. With Substring it is difficult to ensure that embedded commas are handled correctly.
    It's much better to use the Pathname object (IADsPathname interface). I provided a PowerShell script wrapper for the Pathname object in this article:
    Windows IT Pro: Use PowerShell to Handle Active Directory Paths
    It would be helpful for you to say what your goal is rather than posting your code that doesn't work consistently.
    -- Bill Stewart [Bill_Stewart]

  • I have PC with Windows 7 and iPad. My music in iTunes on PC is available under Music on iPad but having trouble moving music to i-Cloud. I suceed in moving the music to iCloud on PC but when I look at iPad music still on device and not in iCloud. Help?

    I am a beginner using Apple software, so please bare with me.
    I am having trouble moving music from the iPad to iCloud in order to save space in the device.
    I realise that in order to store music not purchased on iTunes store can only be stored in iCloud if you subscribe to iTunes Match which I have done.
    Appears that moving music from iTunes on my PC to iCloud is successful by deleting song or album in iTunes library and than click on "Keep song" instead of sending to recycle bin. After this has been done the Cloud Icon appears on the album or against the song. However when I then look at Music on the iPad the album or song have not been moved to iCloud. I have tried syncronising with cable connected between PC and iPad. After that has been done the message is that sync was successful bujt still music has not been moved into the Cloud.
    Can anybody help? What am I doing wrong? Is there a way to move the music to the cloud working on the iPad only (without trying to use the PC to move the music to the cloud)?

    You can only add music to iTunes Match from your iTunes library on your computer, not from your iOS device.  If you have music on your iPad that is not on your computer, you'll have to import it to your iTunes library on your computer to add it to iTunes Match. 
    Music purchased from the iTunes store can be imported directly to your iTunes library by authorizing your computer for the Apple ID(s) used to purchase the music (in Store>Authorize This Computer), then connecting the iPad to your computer, opening iTunes and going to File>Devices>Transfer Purchases.  Music from other sources will require using 3rd party software to transfer to your computer, such as Touch Copy.

  • I am having trouble moving files from iPhoto to a thumb drive.  Sometimes I can move 20 photos next time I can only move 2 photos or 0---this is during the same session.  I also have trouble downloading photos to the internet.  Can someone please help?

    I am having trouble moving files from iphoto to a thumb drive.  During the same session sometime I can move 10 photos at a time, the next time I can only move one photo and sometime no photos will move.  I also have trouble downloading photos to the internet.  I was using a MacBook Pro and had no problems like this.  I then upgraded to the MacBook Pro with Retina Vision and this is the computer I am having problems with.  Can anyone please give me a suggestion in how to fix this problem. THANK YOU.

    iPhoto problems should be posted in their forums.
    I also have trouble downloading photos to the internet.
    Needs clarification.  You upload from your computer to the internet & download from a website/internet to your computer.  So which are you trying to do?  Either way, sounds like a browser issue.  You need to post in the forum of whichever browser you are using.

  • Help! Moved PCD content, now users with Personalized pages empty

    Hi
    Please help. I've moved some iViews and pages to different folders but now my users with personalized pages just shows up blank! If I go to personalize on their page the iViews is gone under Personalized page...
    I've moved the content back but its still missing...
    EP6 SP18 P2. It’s working for users with no personalization.
    Any ideas?
    Thanks!!
    Eon

    Hi Nitin
    Thanks, I had a look at the thread but I didn’t create a delta link but moved it
    I've used the cut -> paste option to move the content. I've used the PCD inspector before but they only display the IDs in there and I needed to re-organise the PCD. The logical names helped me to classify it.
    If I assign the role to a new user, it works perfectly. Its only users that personalised their page that’s getting the error.
    I think it some how if the user personalised their page, it doesn’t use the default iView location linked to that page\role but somehow a cached version of the location.
    Any ideas?
    Thank you very much!
    Eon

  • I moved my users/yourname folder my other drive and want to move it back

    Hi there.
    I recently swapped out the internal hard drive for an SSD and I swapped the optical drive for another HDD.
    I use the SSD as a system drive that I don't write to.
    The HDD is for audio and documents.
    I moved my users/yourname to the HDD including the library folder but it's been strongly recommended that I move the users folder back to the system drive and move the iTunes, iPhoto, docs,and desktop folders to the HDD.  Do I just simply copy the folder back over to the SSD and delete the folders on the HDD? do I need to do anything in the terminal?
    thanks for your help.
    -Matt

    You could point your home folder to the new destination so the system recognizes it as such, and not touch anything. See below
    Changing user account short name

  • Just recently my iPad started to get lazy on me I'll go on a website and it has trouble moving through the different applications within it. It has nothing to do with the wifi because it's doing it no matter what wifi it is using at the time.

    Just recently my iPad started to get lazy on me I'll go on a website and it has trouble moving through the different applications within it. It has nothing to do with the wifi because it's doing it no matter what wifi it is using at the time?

    Not sure what you are talking about.

  • Restore DB from backup with move - need to set to single user mode first and then reset to multiuser?

    Im going to restore a recent backup from a production server DB to a test server DB and I want to do it through tsql.  The DB already exists on the test server, I just want to overwrite it with a fresh copy.  There may or may not be some activity
    on the test server that is connected to the database, but its not important and can be abandoned/discarded.
    This is what Im getting ready to do
    First, get an idea of what the file paths are specified in the backup file
    RESTORE FILELISTONLY FROM DISK = 'file_back_to_backup here .back .dat etc'
    Then, set the DB to singleuser mode, and discard any connections/transactions currently started
    ALTER DATABASE MyDBName
    SET SINGLE_USER WITH
    ROLLBACK IMMEDIATE
    Then, do the restore, specifying the paths to the mdf/ldf files that already exist.
    RESTORE DATABASE MyDBName
    FROM DISK
    WITH MOVE 'db logical name' TO 'new data path .mdf', MOVE 'log logical name' TO 'new log path.ldf';
    Questions:
    (1) If I specify the data and log file paths as ones that already exist, will they be overwritten?  This is what I want, as I just want to copy the prod db over to the test server.
    (2) Do I need to explicitly reset the DB back to multiuser mode, or does this happen after the restore?
    (3) Anything missing from the above script(s) ?  Suggestions?

    Questions:
    (1) If I specify the data and log file paths as ones that already exist, will they be overwritten?  This is what I want, as I just want to copy the prod db over to the test server.
    (2) Do I need to explicitly reset the DB back to multiuser mode, or does this happen after the restore?
    (3) Anything missing from the above script(s) ?  Suggestions?
    1.Just restore the backup with REPLACE command and it will overwrite the current database.
    2.No , database will be automatically put to Multi user mode if you are restoring with recovery
    3. Single user script is fine .Change restore script like no need to use with move option
    restore database db_name from disk='location' with replace
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    I think I will still need WITH MOVE, as the files in the backup are using a different path than where they are located on the test server, correct?
    RESTORE DATABASE MyDBName
    FROM DISK
    WITH MOVE 'db logical name' TO 'new data path .mdf', MOVE 'log logical name' TO 'new log path.ldf' WITH
    REPLACE;

  • Network Users with network homes not really working for me

    I have with great pain setup a OS X Lion server on a Mac Mini that was supposed to be my central server to have 4 network users accounts and all the users data is stored on an external disk array with mounted network homes to the 2 iMacs and 2 Macbooks I have in my home.
    I have gotten it all working and all my Macs are joined to the Open Directory and each User can login as a network users on any of the Macs and get their files via mounted home directory from the server. The home directories on the server are backed up with Time Machine.
    I have found the following items that do not work proberly:
    1) Desktop backgrounds settings are just lost sometimes for whatever reason. Desktop background goes to default and you need to manually set back to the one you have selected. This happen mostly if users have their own desktop pictures.
    2) Keychain get's screwed up. The user often get the "Keychain doesn't exist to store ..." message and need to select to reset the keychain. Anything I have tried from "Keychain First Aid" to removing and have a new one created doesn't fix the problem. It keeps on coming back.
    3) iTunes Storage and AppStore are getting confused about authorized computers. This is because a user logs in from another computer and then iTunes store would tell the user this computer hasn't been authorized to play the purchase music. Same happens with iPhone apps from the AppStore. Apparently those two stores are not setup to hanlde network users proberly.
    4) Permission issues happen sometimes in Application like iPhoto where it would complain not being able to see photos or cannot add new photos to the library. Need to run a permission repair on the Iphoto Library to fix this.
    5) One critical one is that it's not really possible to restore files from Time Machine. The Time Machine backup is done on the server by an administrator account directly backing up the user directories. When you go into Time Machine on the server even the admin can drill down into the user directories so no restore possible. The individual users have no idea that there was ever a Time Machine backup done as Time Machine is not setup in their accounts on the individual Macs. This prevents any possible restore.
    I reckon that many of the problems are related to having only one location for ~/Library as the individual Macs are writing their user related settings into this directory in a central location. So what happens is when something on iMac 1 and then I log in on iMac 2 that might not exactly match this Macs config and it get's confused throwing one of the above erors.
    Trouble is witth central network home directory the way they mounted i can't exclude the ~/Library folder. The only option I can see is mobile account because I have seen in the preferences that when they sync the handle Library items differently.
    Does anybody have any experience out there with this sort of thing and can advise what's the best way forward?
    If i can't resolve this I'll go back to have network users with local home directories on each Mac and just setup for each user a network share to which they copy files if they want them available on other Macs. Not as nice but at least it works!
    As a said note I did this to make things easier but it has up to now cost me trouble then i had before!

    Haven't heard anything from anybody so probably to daunting a topic ...
    I have now moved on to try Portable Home Directories (PHD) and syncing ... what a disaster!
    First it took  me ages to get this right as the way the home directores are mounted on the clients from the server it's just weired which has to do with how AFP mounts are implemented. Since one AFP mount can't be mounted by several users on the same system they use a workaround of mounting it to a temp directory and then linking it back to where it should be. Of course this causes major problems.
    Okay it kind of worked so let's move on to syncing PHD. First of all on initial creation it only sync a small portion of the directory that should be okay but on some of my accounts it never went passed this stage. It said it's all synced but it only had synced the first 10% or so of the data. I wasn't able to make it sync anymore.
    On other accounts it correctly synced all the data down, or so I thought. Apparently a few sync session back and forth and 50-60% of the data was gone. On further investigation it turned out to be iTunes and iPhoto libraries. Turns out does don't sync probably via Home Sync!!!
    Apple product is not able to probably syncing Apple specific library files!!!!
    So here my warning to everybody: DO NOT USE PHD and HOME SYNC to sync your data as you will lose stuff if you have iTunes and/or iPhoto libraries with Lion OS X Server!!!
    The whole Lion Server experience has been a disaster for me. Now I have a server that does file sharing and time machine backup sharing. I can do the same thing with a standard Mac using those services. What's the point of Lion Sever for Home if nothing works proberly?

  • Can I have a network user with the same name as a local user?!

    I have just set up Mac OS X 10.8 SErver with Open Directory.  I have about 20 machines that I will be setting up, some which have mainly been used localy and just used to tap into Shared Files, [historically], but am wanting to use network users for better backup and support.
    However some of the legacy accounts were not used on off the server...  What I have is the following :-
    a)    [Person A]  - They are a network user with Password [Password A]
    b)    The computer is [Person A], they have a Password [Password Old] (so it is different)
    I have Network Account Users turned on, with a green dot! (have domain all set up)
    However How do I connect using either a or b.  depending on what i feel like that day!
    ? Help any ideas.
    Ultimately I will have set up all my client machines with a client admin user and standard password... but I am not there yet!

    Moving from local (legacy) users to network users takes a one-time hassle of moving the contents of their local home folder contents up to the server. Using a finder copy never worked for me. What I finally found worked reliably was using rsync to copy the entire users local folder up to the server. Once on the server, move the files into place (if you didn't rsync them there directly. Finally, Chown all the files (on the server) to associate them with the correct userID on the server. If everything looks right on the server, you can test by trying to login as this user from another local Mac (but now as a network account), and hopefully their home folder looks like they expected.
    Note you will need admin access in the local machine and the server to rsync their home folder. You don't want to be logged into their account while trying to copy their files up to the server.
    If rsync is not your bag, a portable hard disk and/or disk image of their home folder is another way to move their stuff.
    Once you've verified that their network account got to the server ok, then REMOVE the local account.

  • Cannot see users with server 10.7.3 update

    I updated to 10.7.3 and when I launch the server app I see only the administrator user in the users pane (all other users do not show up). Further, the knobs for + and - are grayed (disabled). I still can log in with any network user, though. How can I restore seeing all users in the users pane, and being able to add delete users again? I think this is an interface problem..
    Thanks for any help
    José

    thanks but still no luck. I dont seem to have an iCloud; use only this server option or Authentication is set to Apple Token
    I'm getting this error message.
    There may be a problem with the mail server or network. Verify the settings for account “[email protected]” or try again.
    The server returned the error: Moved: http://me.com/move
    getting this error message
    There may be a problem with the mail server or network. Verify the settings for account “[email protected]” or try again.
    The server returned the error: Moved: http://me.com/move
    and then it asks for my password again.
    all was working great before the 10.7.3 update. I think it might be because of my original @mac.com address is screwing things up! thanks for your help

  • Need help moving photoshop files with layers

    I have been having some trouble, when I attempt to move photoshop files with a CD-R disk, from my school pc to my home mac, only the top most image is moved. The layers are deleted, and I only receive the image on the background layer. I need the layers to continue working on the pieces. Would a flash drive transfer the whole file, or am I doing something wrong with the disk file?

    Yeah, time is a factor because the system is getting wiped in a few days. The school version is photshop 7 I believe, and I have photoshop CS3 extended here. What I did was save the file to the CD burner, I didn't change the format to my knowledge. I thought that the data would have transfered from computer to computer, but it didnt, its like it saved as a different file entirely. I assume that using a flash drive would preserve the info in its entirety. I guess your saying that the type of file its saved as changes whether its a photoshop layers file, or just a flat image. I'll try again tomorrow.

Maybe you are looking for

  • How can I sync my iPhone 4S and iPod Touch 4G to ANY computer/itunes without having to erase EVERYTHING on it?

    I need to use another laptop to sync my music, I've already synced my iPhone 4S and iPod Touch 4G with my laptop and had to delete EVERYTHING to do so! I refuse to do this again, I was NEVER able to restore my phone back to it's original state since

  • Error  ORA-02019: while selecting table from oracle10g to SQL Server 2005

    Hi all, our oracle 10g database is on AIX 5.2 and i configures heterogeneous service and install oracle 10g cleint on windows 2003 server where SQL Server reside . i configured the following things but i got the error ORA-02019. please help me its ve

  • Upgrading from PI 7.0 to Pi 7.1 with EHP1

    Hi all, We have PI 7.0 on SP 20 and with fully configured and live in Production. We are planning to move the middleware from 3rd party to PI which needs PI to be on PI 7.1. Presently in our PI 7.0 we have usage type EPC along with PI usage type, and

  • Database Hanging

    Hi, I have Oracle database 10g my database is hanging and i want to check what locks occur on which table how can i work on this database hanging process.Kindly help...because i am new for this i need good procedure to face this problem..

  • Custom mount point in fstab

    Hello, I am setting up a nas. I have configured a partition scheme that seems suitable for me. I have a problem though, I can not seem to mount a partiton to a custom mount point. The system is up to date, I just installed it last night. Here is my f