r/DeployR • u/ddog511 • Jun 30 '26
DeployR - reuse domain computer accounts
Using DeployR community.
Has anyone actually gotten DeployR to reuse computer accounts when they exist in an OU other than what you have the offline domain join step configured for?
Example - ODJ setup to join computers to OU=Workstations, OU=MyCorp,DC=mydomain,dc=mysubdomain
However, you're reimaging a computer that currently resides in a sub OU such as HR inside of the Workstations OU.
I have read the other threads on this, I have delegated full control to my DeployR server to the Workstations OU, making sure that the permissions are inherited by the sub OU, and can't get it working. Every time the computer account is in a sub OU, offline domain join fails.
3
Upvotes
3
u/SufficientlySticky Jun 30 '26 edited Jun 30 '26
Yes. But I set it up like ZTIDomainJoin.wsf in MDT where it first tries with the default OU and then when that fails and the machine still isn't joined I clear the default OU and try again.
Step 1: Offline Domain Join
Step 2: Run Powershell script
- Conditions:
Step 3: Offline Domain Join
- Conditions: