Failed to add computer to AD group during OSD

QdPooler-5995 516 Reputation points
2022-12-21T09:33:56.49+00:00

I'm trying to using a command line step to add computer to AD group in my task sequence, but it failed without any error. I have confirmed that the account I used in the step has local admin permissions. The script works well when running manually. Any help would be greatly appreciated.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
1,028 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Simon Ren-MSFT 38,596 Reputation points Microsoft Vendor
    2022-12-21T15:41:20.753+00:00

    Hi,

    1,May we know if there is any further information about this issue in the smsts.log? Please refer to:
    SCCM: How to copy SMSTS.log when a Task Sequence fails

    2,Here are some guides for your reference:
    Adding Computer to AD groups during deployment
    Back to Basics – Adding the Computer to an AD Group during Deployment
    Please note: The links are not from Microsoft, just for your reference.

    Thanks for your time. Have a nice day!

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.