How can force to create a computer object before add the computer to a domain

Jhon Fredy 1 Reputation point
2021-08-18T14:58:11.487+00:00

Hi Team,

I remember when i was working in a company that before we can join a computer to the domain, the computer object must be create ahead in active directory.

How can Force to create a computer object before join the computer to a domain.

What setting is required to enable in GPO to enforce this.

Thanks..

Windows for business Windows Client for IT Pros Directory services Active Directory
{count} votes

7 answers

Sort by: Most helpful
  1. Jhon Fredy 1 Reputation point
    2021-08-24T14:20:32.28+00:00

    thanks for the suggestion, but this is no a solution for me, as mentioned:
    I remember when i was working in a company (mid 2013) that before we can join a computer to the domain, the computer object must be create ahead in active directory.

    I think that must be an option in GPO - Domain Controller Policy that we can use to enforce this


  2. Charles Thivierge 4,171 Reputation points
    2021-08-24T14:31:56.83+00:00

    AFAIK, there is no option in Group Policy to create or enforce the creation of a computer account in case it does not exist.

    The policy you may think about is the following:
    Computer Configuration / Windows Settings / Security Settings / Local Policies / User Rights Assignment / Add workstations to domain
    This policy will define who is able to add computers to the domain. The process of creating the computer account is not a GPO setting.

    What you can do is using a PS script like DSPatrick mentioned to create computers objects in the correct OU before the computer will join the domain. This is probably the best option in case you don't want to delegate permission on a specific OU.

    hth


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.