PSD icon indicating copy to clipboard operation
PSD copied to clipboard

MachineObjectOU variable not processed.

Open lurendrejer opened this issue 2 years ago • 8 comments

The 'MachineObjectOU' variable in rules.ini isn't processed, i think. I've been trawling the scripts and documentation to find any hint of the OU that machine accounts are created in, without any luck.

MachineObjectOU is mentioned in the unattend -templates.

I might just be dimb - but i'm unable to find all possible customsettings.ini/rules.ini values listed anywhere. The user-account i have been using for MDT only had write-permissions to the OU found in <MachineObjectOU>

lurendrejer avatar Nov 10 '23 11:11 lurendrejer

Hi there, i had the same issue and i was able to solve it this way: Delegateing AD Permissions

  1. In Active Directory users and Computers > Right Click on the OU where you want the devices to go > Delegate Control...
  2. Add the UserAccount that should Join the Device
  3. Create a custom task to delegate

Active Directory Object Type

  • Computer objects
  • Create selected objects in this folder
  • Delete selected objects in this folder ADK_MDT-013

Permissions

  • Reset Password
  • Read and write account restrictions
  • Validated write to DNS host name
  • Validated write to service principal name ADK_MDT-014
  1. Finish

Hope this helps..

meightymike avatar Nov 23 '23 11:11 meightymike

This is already in place and working with 'normal mdt' - i must have missed something completely. But thank you anyway, the guide will surely come in handy for some else searching here :)

lurendrejer avatar Nov 23 '23 16:11 lurendrejer

I might just be dimb - but i'm unable to find all possible customsettings.ini/rules.ini values listed anywhere. The user-account i have been using for MDT only had write-permissions to the OU found in

Here is the Toolkit Reference for all the variables used by MDT/PSD.

GeoSimos avatar Dec 05 '23 00:12 GeoSimos

Tried this myself and the MachineObjectOU did not work. Instead, I dug a little into the code and found that DomainJoinOU worked when specifying it in the CustomSettings.ini. I also had to add it to the properties

pookkii avatar Dec 07 '23 23:12 pookkii

@pookkii perfect, thank you !

lurendrejer avatar Dec 08 '23 04:12 lurendrejer

There is a fix for it coming. I did find the issue.

PowerShellCrack avatar Mar 05 '24 14:03 PowerShellCrack

There is a fix for it coming. I did find the issue.

Did this ever get fixed?

TheRealMethuselah avatar May 27 '24 00:05 TheRealMethuselah

@TheRealMethuselah This has been fixed in the new release. Please test it to make sure.

It also allows multiple OU selections using DomainOUs00, etc.

PowerShellCrack avatar Sep 16 '24 01:09 PowerShellCrack