Move-ADObject return Access Denied

Answered Move-ADObject return Access Denied

  • Sunday, January 27, 2013 7:47 AM
     
     

    Hi,

    I want to move specific AD objects based on a few particular criteria s, When I run Move-ADObject command at powershell it returns an error which contains : Access Denied.

    However I managed to fix the problem with a temporary solution which is disabling protecting object from accidental deletion. Is there any other solution to achieve this process without disabling the following check-box? It is quite risky to disable the accidental deletion.

    Regard.


    Mahdi Tehrani | Loves Powershell Spreadis Twitter LinkedIn Youtube

All Replies

  • Sunday, January 27, 2013 8:56 AM
     
     Proposed

    This is a scripting forum.  It is no a place to ask questions about how to use AD.  Please post in AD forum.


    ¯\_(ツ)_/¯

  • Monday, January 28, 2013 7:04 AM
    Moderator
     
     Answered

    Hi,

    If the Protect from Accidental Deletion option is enabled on the OU to be moved, you will get “Access denied” message when you attempt to perform Move-ADObject operation. That is by design.

    You can just disable the "protect from accidental deletion" option temporarily, before you perform the operation, if you really need to do this.

    Reference: http://technet.microsoft.com/en-us/library/dd391940(v=WS.10).aspx

    Regards,
    Cicely