Site icon Windows Active Directory

Creating objects in Active Directory

What are Active Directory Objects?   

Active Directory (AD), Microsoft’s proprietary directory service for Windows Server, allows administrators to control permissions and network resource access. In AD, data is stored as objects. An object is a fundamental unit of data and is typically defined as a resource, such as printers or computers, or a security principle, such as people or groups. AD objects’ properties are defined by a set of information or data, known as AD object attributes. A user object in AD has attributes such as first name, middle name, and passwords, but a computer object has AD attributes such as computer name and DNS name. The AD schema defines the attributes contained in an AD object. The schema includes object classes that specify the different types of AD objects and the mandatory attributes they must have.

What are object categories in AD?   

AD objects are classified as follows:

How many object class types are there in AD?    

AD has three types of object classes:

What are the common types of objects in AD? 

The following are the most common object types in Active Directory:

Can the objects be identified by name?   

Yes. You can identify objects by using the following names:

How to create objects in AD?   

Let’s look at how to create objects in AD by using the AD users and computers console and PowerShell.

  1. Using ADUC console:
  1. Using PowerShell:

Active Directory user objects can be created using the New-ADUser cmdlet as follows:

New-ADUser -Name “Full Name” -GivenName “First Name” -Surname “Surname” -SamAccountName “User Name” -UserPrincipalName “UPN for the user account” -Path “OU path” -AccountPassword(Read-Host -AsSecureString “Type Password for User”) -Enabled $true

A user account can be created with just minimum information, including Name and UPN, however it will generate a disabled user account. A password is required to activate a user account. Use the Set-ADAccountPassword -Identity cmdlet to set a password, and the Enable-ADAccount -Identity cmdlet to enable an account.

You can construct computer objects using the New-ADComputer cmdlet.

The New-ADComputer cmdlet is a part of Windows PowerShell, and it can be used to construct computer objects. The computer objects that are created by this cmdlet are not linked to a domain.

New-ADComputer -Name <computer name> -path <distinguished name>

   Most of the time, only the cn (common name) and objectClass attributes are necessary to construct an object. However, simply creating an object does not guarantee that it will be functional. To be functional, additional qualities, such as those present in users and groups, are required.


People also read

Active Directory Object permissions: Step-by-Step guide to managing permissions using GPOs, ADUC, and PowerShell

Authenticating and authorizing objects in AD

How to locate Active Directory Objects

Exit mobile version