How to View and Change Active Directory Object Attributes

How to View and Change Active Directory Object Attributes

Changing the Object Properties in Active Directory

Objects in Active Directory are entities that are used to represent entities such as users and devices that make up the Active Directory network. Examples of objects include users, computers, printers, folders, and groups. Objects may be classified into two types namely container and leaf objects. As the name suggests, container objects hold or contain other objects within them. These include groups and organizational units. On the other hand, leaf objects are used to represent entities and cannot hold other objects. These include resources such as users and devices.

Each object can be defined by a set of attributes, which store information about the configuration and characteristics of the object. These are defined by the object class. Sometimes, attributes are also referred to as properties. Attributes are generally stored as a set of values, which may be unique. An object can contain multiple attributes. For instance, in an organization, each employee may be represented by a user object. This user object in turn is defined by attributes such as Name, Department, Employee ID, Contact Information, etc.

The attributes or properties of objects might need to be viewed and changed by IT administrators for several purposes. For instance, the contact information of an employee might need to be updated or the properties of a computer might need to be changed. This can be done using:
  1. Active Directory Service Interface (ADSI) Editor tool
  2. Active Directory Users and Computers (ADUC)
  3. PowerShell commands to view and change object attributes

1. Using ADSI Edit to View and Change Object Properties

The ADSI Edit tool is an MMC snap-in that can be used to connect to several Active Directory database partitions or to the LDAP server. In addition to these, this tool can be used to create, manage and delete objects and to view and change their properties.

How to Install ADSI Edit

The ADSI Edit tool can be installed on Windows Server 2008 and 2008 R2 using the instructions given below.
  1. Click on Start and open the Control Panel.
  2. Select Programs> Programs and Features >Turn Windows Features on or off.
  3. From the left pane of the Server Manager dialog box, select Features and click on Add Features.
  4. Navigate to Remote Server Administration Tools > Role Administration Tools.
  5. Select the AD DS and AD LDS Tools option.
  6. Click on Next to proceed to confirmation.
  7. Click on Install to finish setting up ADSI Edit.
  8. The ADSI Edit tool can be installed on Windows Server 2012 and later versions using the instructions given below.
  9. Click on Start and open the Control Panel.
  10. Select Programs > Programs and Features >Turn Windows Features on or off.
  11. From the left pane of the Add Roles and Features Wizard, proceed to Features.
  12. Navigate to Remote Server Administration Tools > Role Administration Tools.
  13. Select the AD DS and AD LDS Tools option.
  14. Click on Next to proceed to confirmation.
  15. Click on Install to finish setting up ADSI Edit.

How to Use ADSI Edit to Change Object Properties

Once ADSI Edit is installed, it can be run by opening Command Prompt and typing adsiedit.msc and can be used to change the object attributes. This can be done by following the instructions given below.

  1. Select the Connect to option by right-clicking on the root in ADSI Edit.
  2. This provides the options for the Connection Point, Naming Context, or a remote computer with LDAP database to which the user desires to connect.
  3. The user can also choose from the following Naming Contexts namely Default Naming Context, Configuration, RootDSE and Schema.
  4. To connect to a local machine, click OK. The name need not be specified.
  5. Expand the domain and Organizational Unit containing the object.
  6. Right click on the desired object and select Properties.
  7. The Attribute Editor tab displays the list of attributes and values of the selected object.
  8. The necessary changes can be made under the Attribute Editor tab.
  9. Click OK once the properties have been viewed and changed.

2. Using Active Directory Users and Computers to View and Change Object Properties

The object properties can be viewed and changed by enabling the Advanced Features option in Active Directory Users and Computers.

  1. Open Active Directory Users and Computers.
  2. From the View tab, select the Advanced Features option.
  3. Select the object for which the properties need to be viewed or changed.
  4. Right-click on the object and select Properties.
  5. This opens the Attribute Editor tab as seen while using ADSI Edit.
  6. The Attribute Editor tab displays the list of attributes and values of the selected object.
  7. The necessary changes can be made under the Attribute Editor tab.
  8. Click OK once the properties have been viewed and changed.
  9. The Attribute Editor tab can also be accessed by using Active Directory Administrative Center (ADAC).

3. Using PowerShell Commands to View and Edit Object Properties

Besides the Attribute Editor tab, the properties of an object can be viewed and modified using PowerShell commands.
The following commands are used to view the attributes of an object.

i) Get-ADUser username –Properties *
This command can be used to view and list the attributes of a user object.
ii) Get-ADComputer computername –Properties *
This command can be used to view and list the attributes of a computer object. 
iii) Get-ADGroup groupname –Properties *
This command can be used to view and list the attributes of a group.

Similarly, the Set-ADUser, Set-ADComputer, and Set-ADGroup PowerShell commands can be used to change the attributes of a user, computer, or group respectively. 
    • Related Articles

    • Active Directory Object attributes

      All AD objects have attributes that take unique or multiple values , these values describe the object characteristics. For example a user object in Active directory will have attributes such as his first name, second name, Manager name etc. The ...
    • Active Directory Object Class

      An object class is a component of Active Directory schema which defines the “type” for an object or in other words it defines the set of mandatory and optional attributes an object can have. Say for example when a new user object is being created, it ...
    • Object permissions in Active Directory

      Permission in AD are privileges granted to users or groups to perform certain operations on objects. Permissions are usually granted by object owners or administrators. Users and groups are assigned permissions (to read, write, create child objects ...
    • How to Change Account Lockout Policy using Group Policy Objects in Active Directory

      Changing the Active Directory Account Lockout Policy  Introduction to Active Directory Account Lockout Policy Account lockout policies are used by IT administrators to lock out an Active Directory account after multiple unsuccessful attempts. It is ...
    • Active Directory User objects

      A user object in AD is used to represent a real user in an organizational network environment. Say for example Joshua is a new employee in my organization, and I need to allow him accesses to various resources of the organization. All I have to do to ...