| |

Microsoft MDT 2012 Update 1 failed ZTIDomainJoin

On a Microsoft MDT 2012 Update 1 installation that had worked during a test period we needed to deploy a new batch of laptops with a different product number as this batch was different from our tests because the fingerprint readers were removed from the device.

The issue:

In this case we used MDT 2012 with RES Automation Manager to configure the devices, the MDT ran and the task sequence kicked in. The last step of the task sequence was to install the RES AM agent and that would automatically launch a project to configure the laptop.

With this new batch of laptops the project would give an error and stop so the first thing that came to mind was a driver issue with this new batch but all hardware was installed correctly.

 

Finding the source of the problem

The error in the RES AM Project was an authentication error so when I tried to logon to the laptop I noticed the laptop wasn’t joined to the domain. I went to the log directory %windir%\Temp\Deploymentlogs as stated in MDT 2010 & 2012 – My deployment failed. What and where are logs I should review? I found the following error in the ZTIDomainJoin.log:

<![LOG[JoinDomain Failure: The account *may* already exist in a different OU. Retrying without the specified OU.]LOG]!>

I checked AD and there was no (pre-staged) Computer account for this device so it couldn’t be a case of duplicated computer accounts. Next step was to manually add the computer to the domain to reproduce an error in Windows, I tried to add the computer to the domain with the service account we provided in the customsettings.ini using the following settings:

SkipDomainMembership=YES
JoinDomain=contoso.local
MachineObjectOU=OU=Workstations,DC=contoso,DC=local
DomainAdmin=sa_account
DomainAdminDomain=contoso
DomainAdminPassword=*********

But I received the following error:

Error
Your computer could not be joined to the domain
image source: vvirtual

 

“Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased”

 The solution

I found  the following kb article: KB251335 which states:

  1. Run Adsiedit.msc as an administrator of the domain.
  2. Expand the Domain NC node. This node contains an object that begins with “DC=” and reflects the correct domain name. Right-click this object, and then click Properties.
  3. In the Select which properties to view box, click Both.
  4. In the Select a property to view box, click ms-DS-MachineAccountQuota.
  5. In the Edit Attribute box, type a number. This number represents the number of workstations that you want users to be able to maintain concurrently.
  6. Click Set, and then click OK.

After adjusting this value I was able to deploy the new batch of laptops.

 

Get new posts by email

One email when a new post goes up. Nothing else.

I only use your address to send new posts, and every email has an unsubscribe link. See the privacy policy.

ShareLinkedInXEmail
Kees Baggerman

Kees Baggerman

Senior Technical Director at Nutanix · NVIDIA Enterprise Platform Advisor · Former Citrix CTP · 15+ years in EUC

Kees Baggerman is Senior Technical Director, Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. An NVIDIA Enterprise Platform Advisor since 2017 and a former Citrix Technology Professional, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011, sharing what he learns at the intersection of platform engineering and enterprise IT.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.