Windows Server · Lesson 04

Active Directory Users & Computers

Review domain users, groups, computers, privileged memberships, and organizational structure without disrupting authentication, services, or required administration.

Active Directory is not simply a list of users. It is an identity and authorization system that many server roles, applications, administrators, and clients depend on.

Lesson Snapshot

Core objects6
Primary consoleADUC
Main concernDomain privilege
GoalSafe identity review

Learning objectives

What this lesson should help you do

01

Use Active Directory Users and Computers to review domain users, groups, computers, and organizational units safely.

02

Recognize the difference between local privilege and domain privilege.

03

Identify high-impact groups such as Domain Admins and other administrative groups without changing membership blindly.

04

Review user-account properties, disabled status, group membership, and logon context before taking action.

05

Recognize service, application, and administrative dependencies tied to domain accounts.

06

Apply least privilege while preserving required domain authentication, services, and management access.

Active Directory concepts

Know what each object represents

Domain user

An identity stored in Active Directory and authenticated by domain controllers according to domain policy and group membership.

Domain group

A collection of users, computers, or other groups used to assign access and privilege across the domain.

Computer account

An Active Directory object representing a domain-joined computer and its relationship with the domain.

Organizational Unit

A container used to organize Active Directory objects and often apply delegated administration or Group Policy.

Privileged group

A group whose members receive administrative rights over the domain, servers, services, or sensitive resources.

Service identity

A domain account or managed identity used by a service, scheduled task, application, or server role instead of a person.

Core idea

Domain privilege can affect many systems at once

A single privileged domain account may administer multiple servers, users, workstations, policies, or services.

High-impact warning

Preserve access and evidence before changing domain identities

Disabling an account or removing group membership can break services, scheduled tasks, applications, and administration.

Investigate dependencies before changing high-impact accounts or groups.

Tool map

Exactly where to go in Active Directory Users and Computers

Active Directory Users and Computers

Server Manager → Tools → Active Directory Users and Computers

Quick action

Win + R → dsa.msc

Primary console for reviewing domain users, groups, computers, OUs, and many account properties when AD DS tools are installed.

Advanced Features

Active Directory Users and Computers → View → Advanced Features

Quick action

Enable only when you need the additional tabs and containers.

Shows additional objects and account properties. Use carefully because more administrative options become visible.

Find objects

Active Directory Users and Computers → right-click the domain → Find

Quick action

Search users, groups, or computers by name.

Useful when the directory is large and you need to locate a specific account or group quickly.

User properties

Active Directory Users and Computers → locate user → right-click → Properties

Quick action

Review General, Account, Member Of, and other relevant tabs.

Inspect before changing. Group membership and account status can affect services and administrative access.

Group properties

Active Directory Users and Computers → locate group → right-click → Properties → Members

Quick action

Review membership and purpose before changing it.

Administrative groups require especially careful review because one membership change can affect the entire domain.

PowerShell

Start → search PowerShell → Run as administrator when required

Quick action

Use the ActiveDirectory module when installed.

Useful for read-only inventory with Get-ADUser, Get-ADGroup, Get-ADGroupMember, and Get-ADComputer.

Directory structure

Understand where objects live

Domain root

The top of the directory namespace. Objects and OUs appear beneath it.

Users container

Often contains built-in or default users and groups, though real environments may organize identities into custom OUs.

Computers container

May contain computer accounts that have not been moved into a custom OU.

Domain Controllers OU

Contains domain-controller computer accounts and is especially sensitive because Group Policy and administration can differ here.

Custom OUs

Organizations often use OUs for departments, servers, workstations, service accounts, or delegated administration.

Built-in container

Contains built-in domain groups and security principals that should not be treated like ordinary custom groups.

User review

Ten questions before changing a domain user

01

Is this account explicitly authorized by the scenario?

02

Is the account enabled or disabled?

03

What is the account's username and display name?

04

Which groups is the account a member of?

05

Does the account have domain-wide or server-specific privilege?

06

Is the account used by a service, task, application, or script?

07

Is the account required for RDP or another administrative workflow?

08

Does the account appear to be a normal human user or a service identity?

09

Do recent logs show successful or failed logons for the account?

10

What evidence would justify disabling, deleting, or reducing its privilege?

Privileged groups

High-impact memberships deserve careful review

Domain Admins

Members typically receive broad administrative control over the domain and domain-joined systems.

Membership should be limited to identities that clearly require domain-wide administration.

Enterprise Admins

Highly privileged in multi-domain forests and normally unnecessary for ordinary daily administration.

Treat membership as extremely sensitive and verify every member's purpose.

Schema Admins

Can modify the Active Directory schema and is rarely needed for routine operations.

Unexpected membership deserves careful investigation.

Administrators

Built-in administrative group with powerful rights in the domain context.

Review carefully and understand nested memberships before making changes.

Account Operators

Can manage many user and group objects depending on domain configuration.

May be legitimate but grants substantial identity-management authority.

Server Operators / Backup Operators

Can receive powerful operational rights on domain controllers and related systems.

Review membership and necessity instead of assuming these groups are harmless.

PowerShell inspection

Inventory domain identities without changing them

Domain users

Get-ADUser -Filter * -Properties Enabled, LastLogonDate | Select-Object Name, SamAccountName, Enabled, LastLogonDate

Creates a broad read-only domain-user inventory when the ActiveDirectory module is available.

Disabled domain users

Get-ADUser -Filter 'Enabled -eq $false' | Select-Object Name, SamAccountName

Shows disabled accounts for review without changing them.

Domain groups

Get-ADGroup -Filter * | Select-Object Name, GroupScope, GroupCategory

Inventories domain groups and shows their scope and security/distribution category.

Domain Admins membership

Get-ADGroupMember -Identity "Domain Admins" | Select-Object Name, SamAccountName, ObjectClass

Reviews direct Domain Admins membership.

User group membership

Get-ADPrincipalGroupMembership -Identity "username" | Select-Object Name

Shows the groups associated with a specific identity. Replace username with the account being reviewed.

Domain computers

Get-ADComputer -Filter * -Properties Enabled, LastLogonDate | Select-Object Name, Enabled, LastLogonDate

Creates a broad inventory of computer accounts.

Privilege reasoning

How domain privilege can appear

Direct membership

The account appears directly in the privileged group's Members list.

Nested membership

A user may inherit privilege because a group they belong to is itself a member of another privileged group.

Role-based membership

Some administrators require elevated rights for a specific job, but broad domain privilege should still be justified.

Temporary privilege

Accounts may have been elevated for maintenance and never reduced afterward.

Service dependency

A service account may have been granted too much privilege because it was convenient rather than necessary.

Legacy membership

Old accounts or groups can remain privileged after staff, software, or responsibilities change.

Account properties

What to inspect before changing a user

Account enabled / disabled

Disabled accounts cannot normally be used interactively, but they may still matter as evidence or configuration references.

Password settings

Review password-related account flags and domain policy context rather than assuming one setting is correct everywhere.

Member Of

Shows direct group membership and is one of the most important privilege-review areas.

Logon restrictions

Account properties can restrict logon hours or computers in some environments.

Profile / home folder

May reveal dependencies or expected user environment.

Description

Useful documentation when maintained properly, but never treat the description alone as proof of authorization.

Classification

Required, Unnecessary, or Investigate

Required

The account or group has a clear, documented domain, service, application, or administrative purpose.

Keep it and reduce excessive privilege only after confirming the required function still works.

Unnecessary

The identity is clearly unauthorized, obsolete, or excessive and has no required dependency.

Preserve evidence first, then disable or remove access in the narrowest justified way.

Investigate

The identity's purpose, privilege, ownership, logon history, or dependencies are unclear.

Review services, tasks, logs, group nesting, applications, and scenario requirements before changing it.

Controlled change examples

Use the narrowest justified identity change

Disable a confirmed unnecessary domain account

Change

Disable-ADAccount -Identity "exampleuser"

Use only after confirming the account is not required by a service, task, application, or scenario requirement.

Verify

Get-ADUser -Identity "exampleuser" -Properties Enabled | Select-Object SamAccountName, Enabled

Remove an unnecessary user from Domain Admins

Change

Remove-ADGroupMember -Identity "Domain Admins" -Members "exampleuser"

Confirm the account does not require domain-wide administration and that another authorized administrator remains available.

Verify

Get-ADGroupMember -Identity "Domain Admins" | Select-Object Name, SamAccountName

Computer accounts

Machines are identities too

Enabled state

An enabled computer account may represent an active domain-joined system.

Last activity

LastLogonDate can help identify stale-looking objects, but it should not be the only evidence used for deletion.

OU location

The object's OU can affect Group Policy and administrative scope.

Server identity

Computer accounts belonging to required servers must be protected carefully.

Trust relationship

Deleting or resetting a computer account can disrupt the machine's domain relationship.

Scenario requirement

If the scenario requires a client or server, its domain object is part of that requirement.

Evidence sources

Use evidence to understand an identity's purpose

Security log

Can contain account logon, privilege, and account-management events useful for context.

Service configuration

Shows whether a domain identity is used to run a required service.

Task Scheduler

Shows whether scheduled tasks run under a domain account.

Group membership

Shows privilege paths and resource-access relationships.

Share / NTFS permissions

Can show whether the identity or one of its groups is required for file access.

Scenario documentation

The strongest source for determining who and what must remain authorized.

Decision cases

Domain identity decisions in context

Unknown user in Domain Admins

A domain user is directly listed in Domain Admins but is not named in the scenario.

This is high-impact privilege, but the account may still support required administration or a service.

Response

Check services, tasks, recent logons, nested groups, role ownership, and scenario authorization before removing privilege or disabling the account.

Disabled former employee account

The account is disabled and not used by any known service or task.

Disabled status reduces immediate risk, but deletion may remove useful evidence or break an undocumented dependency.

Response

Preserve relevant evidence and verify no dependency before deciding whether deletion is appropriate.

Service account in Domain Admins

A required application service runs under a domain account that has Domain Admins membership.

The service may be required while the privilege is excessive.

Response

Document the dependency, determine the minimum rights required, and reduce privilege only after controlled testing.

Old computer object

A computer account has not logged on recently and is not named in the scenario.

The object may be stale, offline, or simply unused during the observed period.

Response

Confirm the system is not required before disabling or removing the computer account.

Fictional defensive lab

Audit identities in CYBERSHIELD.LOCAL

Step 01

Open Active Directory Users and Computers

On the fictional domain controller, use Server Manager → Tools → Active Directory Users and Computers or Win + R → dsa.msc.

Step 02

Map the directory

Identify the domain root, Domain Controllers OU, Users container, Computers container, and any custom OUs.

Step 03

Review privileged groups

Open Domain Admins and other high-impact groups. Record each direct member before making changes.

Step 04

Inspect suspicious identities

A user named LegacyAdmin appears in Domain Admins but not in the scenario. Review its properties, group membership, service usage, task usage, and recent evidence.

Step 05

Make the narrowest justified change

If LegacyAdmin has no required dependency or authorization, remove unnecessary privilege or disable the account while preserving evidence.

Step 06

Verify

Confirm authorized administrators can still manage the domain, required services remain healthy, domain authentication works, and no required task or application failed.

Common mistakes

Active Directory mistakes with large consequences

Removing Domain Admins membership without dependency review

A privileged account may still support required administration or a service.

Deleting suspicious accounts immediately

Deletion can destroy useful evidence and make rollback harder.

Ignoring nested groups

Privilege may come through group nesting rather than direct membership.

Treating descriptions as proof

Account descriptions are useful context but can be outdated or misleading.

Deleting stale-looking computers too quickly

Last activity alone does not prove the machine is unnecessary.

Forgetting domain authentication testing

Identity changes can affect logon and domain services even when ADUC still opens normally.

Reflection

Test your domain identity reasoning

Question 1

Why is Domain Admins membership more significant than local Administrators membership on one member server?

Question 2

Why should nested group membership be considered during a privilege review?

Question 3

Why can a service account be required even if no person logs in with it?

Question 4

What evidence should exist before disabling a domain account?

Question 5

Why can deleting a computer account disrupt a required system?

Question 6

What should be verified after a high-impact Active Directory identity change?

Verification checklist

Confirm identity changes did not break the domain

01

Authorized domain administrators remain able to manage the environment.

02

Required domain users can still authenticate.

03

Required service accounts still allow their services to run.

04

Required scheduled tasks still run under valid identities.

05

No unnecessary direct Domain Admins membership remains.

06

Required computer accounts remain intact.

07

Domain authentication and DNS-dependent functions still work.

08

Relevant account-management and logon events were reviewed after high-impact changes.

Competition checklist

Before leaving Active Directory identity review

01

Open Active Directory Users and Computers using the correct path.

02

Identify the domain root and major OUs/containers.

03

Review Domain Admins and other high-impact groups.

04

Check direct and nested privilege where relevant.

05

Review suspicious user properties before changing them.

06

Check services and tasks for account dependencies.

07

Review required service accounts carefully.

08

Review computer accounts before disabling or deleting them.

09

Classify identities as Required, Unnecessary, or Investigate.

10

Preserve evidence before disabling or removing suspicious accounts.

11

Use the narrowest justified change.

12

Verify domain authentication and required services afterward.

Next Windows Server lesson

Group Policy Management

Next, learn how domain policy is organized, where GPOs apply, how inheritance and precedence work, and how to review effective security settings without editing the wrong policy.

Open Lesson 05 →