test your command using the local system account. https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/
Failed to add computer to AD group during OSD
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.
1 additional answer
Sort by: Most helpful
-
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 fails2,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.