Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Active Directory / Using Attribute Editor in Active Directory Users and Computers

August 24, 2022 Active DirectoryWindows 10Windows Server 2019

Using Attribute Editor in Active Directory Users and Computers

The Active Directory Attribute Editor is a built-in graphical tool to manage the properties of AD objects (users, computers, groups). It is the Attribute Editor where you can view and change the values of AD object attributes that are not available in the object properties shown in the ADUC console.

Contents:
  • Enable Attribute Editor Tab in Active Directory Users and Computers
  • Attribute Editor Tab Missing in Active Directory Search Results
  • Modifying Active Directory Object Attributes with ADSI Edit

Enable Attribute Editor Tab in Active Directory Users and Computers

In order to use the AD Attribute Editor, you need to install the dsa.msc snap-in (ADUC — Active Directory Users and Computers), which is part of the RSAT (Remote Server Administration Tools) for Windows. To install the Active Directory management components, run the following PowerShell command:

  • On Windows 10 and 11: Add-WindowsCapability –online –Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
  • On Windows Server 2022/2019/2016/2012R2, you can install roles and features using the Install-WindowsFeature cmdlet: Install-WindowsFeature RSAT-ADDS
The built-in Active Directory Attribute Editor is available in the ADUC console starting with Windows Server 2008 R2.

Try to open the properties of any user in AD. As you can see, some tabs with the user attributes are available. Here are the main of them:

  • General – the basic user properties that are set when an AD account is created (first name, last name, phone number, email address, etc.).
  • Address
  • Account – the account name (samAccountName, userPrincipalName). Here you can specify the list of computers a user can log on to (LogonWorkstations), or the following options: password expiration, user cannot change password, enabled/disabled account, the account expiration date, etc. Here you can also enable a user if his account is locked due to entering a wrong password by the domain’s password policy;
  • Profile – you can set a path to a user profile (in the scenario with roaming profiles), a logon script, a home folder, and a mapped network folder.
  • Telephones
  • Organization – job title, department, company, manager name;
  • Remote Control – settings for shadow connection to the user’s session in Windows;
  • Sessions – timeouts (limits) for RDP/RDS sessions;
  • Member Of – list of Active Directory groups the user is a member of.

To modify the value of one of the user’s attributes, simply change the value in the field and save the changes by clicking Apply or OK.

Only the basic set of user properties is available to you in this window, but the User class in AD contains much more attributes (200+).

active directory user properties in aduc console

In order to enable the advanced Active Directory Attribute Editor, check the option Advanced Features in the ADUC View menu.

enable Advanced Features in ADUC snap-in

Then open the user properties again and note that a separate Attribute Editor tab has appeared. If you switch to it, the AD user Attribute Editor will open. You can see the list of all user attributes and their values in the table form. You can click any attribute to change its value. For example, if you change the value of the department attribute, you will see that the name of the department in the Organization tab of user properties has also changed.

Active Directory Attribute Editor in ADUC

From the Attribute Editor, you can copy the distinguishedName value (in this format: CN=Jon Brion,OU=Users,OU=California,OU=USA,DC=woshub,DC=com — a unique object name in AD), find the date when the account was created (whenCreated), etc.

Here you can copy the exact names/values of the object attributes to use in your PowerShell scripts.

There is the Filter button at the bottom of the AD Attribute Editor form. By default, only non-empty object attributes are displayed in the attribute window (the Show only attributes that have values option is checked). If you uncheck it, all attributes of the User class will be shown in the editor. Also, note the Show only writable attributes option. If you enable it, only the attributes you are delegated the edit permissions on will be shown (if you don’t have the modify permissions on the attributes of this user, the list of attributes will be empty).

attribute editor filter: show only writable attributes

empty user attribute list in aduc

You can also display only the mandatory attributes with the option Filter -> Mandatory (for the user, these are cn, objectCategory, objectClass, sAMAccountName) or only additional (optional attributes) with Filter -> Optional.

Most AD attributes have a built-in value-decoding feature. For example:

  • You can check the domain user’s last logon time by the lastLogonTimestamp attribute. As you can see, time is displayed normally in the Attribute Editor, but if you click it, you will see that in fact time is stored as a timestamp value;
    lastLogonTimestamp ad attribute
  • The account status is stored in the userAccountControl attribute. You see a more convenient view instead of a bitmask. For example, 0x200 = (NORMAL_ACCOUNT) instead of the 512;
    userAccountControl ad attribute
  • However, the user’s photo in AD (thumbnailPhoto attribute) is not displayed and is stored in binary format.
To view and edit all user, group, or computer attributes in AD you can use PowerShell cmdlets from the RSAT-AD-PowerShell module instead of the Attribute Editor GUI.

To view the values of all object attributes:

  • of a user: Get-ADUser username -Properties *
  • of a computer: Get-ADComputer computername -Properties *
  • of a group: Get-ADGroup groupname -Properties *

To change object attributes in AD, the Set-ADUser, Set-ADComputer, and Set-ADGroup cmdlets are used respectively.

Attribute Editor Tab Missing in Active Directory Search Results

The main disadvantage of the AD Attribute Editor is that it won’t show in the object properties if you have found it using an Active Directory search. To use the Attribute Editor, you must expand the container (Organizational Unit, OU) that contains the object you need in the AD tree, find the object in the list, and open its properties (it is rather inconvenient).

I have found a small trick that allows you to open the Attribute Editor for a user if you find the account through a search in the ADUC console.

  1. Use the search to find the user you need;
  2. Go to the tab with the list of user groups (Member of);
  3. Open one of the groups (it is better that it contained as few users as possible);
  4. In the group properties, go to the Members tab and close (!) the user properties window;
    aduc search object
  5. Then click the user you need in the list of group members and the user properties window with the Attribute Editor tab will appear.
    Active Directory show attribute editor from search

You can also open the Attribute Editor using the Active Directory saved queries. For example, you can use the following query to find a user by its name: (objectcategory=person)(samaccountname=*andrey*)

AD Saved queries

Or you can use the new Active Directory Administrative Center snap-in (dsac.msc), where the user (computer) Attribute Editor tab is available even for the search results (check the Extension tab).

User's Attribute Editor in Active Directory Administrative Center

Modifying Active Directory Object Attributes with ADSI Edit

The ADSI Edit (Active Directory Service Interface Edit) console is a lower-level tool for managing and editing objects and attributes in LDAP directories (including those in the Active Directory database sections, NTDS.dit). The ADSI Edit console can be used to edit attributes, objects, and directory partitions that are not available through standard Active Directory snap-in MMCs, fix Active Directory errors, and various service objects that use AD to store their configuration (Exchange, SCCM).

In order to open the ADSI Edit snap-in, press the Win + R and run the adsiedit.msc command.

The first time you launch the ADSI console, you will be prompted to select the Active Directory naming context you want to connect to (Actions -> Connect to). The following sections are available:

  • Default naming context
  • Configuration
  • RootDSE
  • Schema

adsiedit: connect to active directory naming context

In our example, we will be using the ADSI console as a user/computer attribute editor, so we need to connect to the Default naming context.

You will see your tree structure of containers and OUs in AD. Here you can find the desired Active Directory object and open its properties. You will see the object Attribute Editor window. Here you can view or change the values of user/computer/group attributes.

active directory attribute editor in adsiedit console

Be especially careful when editing AD partitions, schema properties, or object attributes using ADSI Edit. This tool allows you to write changes directly to the database, schema, and AD configuration, and bypass the simplest checks and restrictions of the standard MMC consoles. We recommend backing up Active Directory before making changes to the directory using adsiedit.msc.

1 comment
6
Facebook Twitter Google + Pinterest
previous post
Remove Old and Useless Drivers from the Windows Driver Store
next post
How to Run a Scheduled Task After Another Task Completes

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

How to View and Change BIOS (UEFI) Settings...

September 13, 2023

1 comment

Wilson Hong October 20, 2021 - 4:36 am

Hello, how about a user telephone extension? Where is the attribute value?

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Configure Google Chrome Settings with Group Policy
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • Allow Non-admin Users RDP Access to Windows Server
  • How to Find the Source of Account Lockouts in Active Directory
  • How to Disable or Enable USB Drives in Windows using Group Policy
  • Get-ADComputer: Find Computer Properties in Active Directory with PowerShell
  • Configuring Proxy Settings on Windows Using Group Policy Preferences
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top