adUserObject Move to Error

Zaid Gandhi 21 Reputation points
2022-06-09T10:06:50.317+00:00

System.DirectoryServices.DirectoryServicesCOMException
The server is unwilling to process the request.

System.DirectoryServices.DirectoryServicesCOMException (0x80072035): The server is unwilling to process the request.

at System.DirectoryServices.DirectoryEntry.MoveTo(DirectoryEntry newParent, String newName)

at Intranet2017.ScheduledJobs.StudentAccountSetup.Run(PerformContext context)

at line:318

Windows for business Windows Client for IT Pros Directory services Active Directory
Developer technologies Transact-SQL
{count} votes

Accepted answer
  1. Stefan Horz 3,466 Reputation points
    2022-06-17T14:41:09.707+00:00

    Hi,

    perhaps the user object is corrupted by previous settings (?), something like that:
    212524-corrupted.jpg

    Can you open the user object in DSA and save ?
    Does "adUserObject.MoveTo(dest);" when you have adUserObject and dest set for this the user?

    Regards,
    Stefan

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2022-06-13T08:11:09.65+00:00

    Hi there,

    The error message the server is unwilling to process the request is generic and might indicate a lot of reasons for the script to fail. Posting the script might help the community to identify the issue. Check if the student's group is in the 'global' scoped group or 'universal' scoped group.

    New-ADUser : The server is unwilling to process the request https://social.technet.microsoft.com/Forums/ie/en-US/50bfd4e1-b856-490b-8dba-c4219e0f1b0f/newaduser-the-server-is-unwilling-to-process-the-request?forum=ITCG

    -------------------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.
    0 comments No comments

  2. Olaf Helper 47,436 Reputation points
    2022-06-10T05:34:39.617+00:00

    The Job runs on a Hangfire.

    That's not a Microsoft product; better contact the software vendor support for assistance.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.