beginner

Active Directory and User Account Management for the Help Desk

The directory behind most office networks, from a support technician's seat: domains, users, groups, OUs and Group Policy; daily tasks (password resets, unlocks, group changes); joiner, mover and leaver processes; diagnosing lockouts and 'trust relationship' errors; and doing it all safely, verifying identity first.

50 min

Why a help desk technician needs to know this

In most offices, when someone says “I can’t log in”, “I can’t open the shared folder” or “I’m starting on Monday”, the real work happens in the directory. Resetting passwords, unlocking accounts, adding people to groups and creating or disabling accounts make up a large share of support tickets, and mistakes here are security incidents: the wrong person with the wrong access. Learn the concepts, the routine tasks and the safety rules.

What a directory is

A directory service stores information about the people, computers and resources on a network and answers two questions: who are you? (authentication) and what may you do? (authorisation). Microsoft’s Active Directory Domain Services (AD DS) is the most common on-premises directory. Its modern cloud counterpart is Microsoft Entra ID (formerly Azure AD), and many organisations run both, synchronised (hybrid).

The building blocks

Term Meaning
Domain A group of computers and accounts under one directory, with a name such as corp.example.com
Domain controller (DC) A server holding a copy of the directory and handling sign-ins. Organisations run at least two
User account An identity for a person (or a service) with a username and password
Computer account Every domain-joined PC and server has one; it has its own secret password with the domain
Group A collection of users, computers or other groups used to assign permissions
Organisational unit (OU) A folder in the directory used to organise objects and apply policy and delegation (for example Staff > Finance)
Group Policy (GPO) Rules pushed to users and computers: password policy, mapped drives, security settings, software, desktop settings
DNS AD depends on DNS to find domain controllers; most “AD problems” turn out to be DNS or time problems
Kerberos The ticket-based sign-in protocol; requires clocks within about five minutes of each other

Groups, the right way

  • Security groups assign permissions. Distribution groups are only for email lists.
  • Scopes: domain local, global and universal control where a group can be used. A common design pattern is AGDLP: put Accounts into Global groups (roles such as Finance-Staff), put those into Domain Local groups that describe a resource permission (FileShare-Finance-Modify), and assign Permissions to the domain local group. You will meet names like these in real environments.
  • Never grant folder or application access to an individual except as a documented exception. Use the group that represents the role, so access can be reviewed and removed cleanly.

Everyday tasks

You will usually work in Active Directory Users and Computers (ADUC) (installed with the RSAT tools) or in a vendor’s identity portal. Most tasks also have PowerShell equivalents (the AD module).

Reset a password and unlock an account

  1. Verify the caller’s identity following your procedure (see below).
  2. Find the user: right-click, Reset Password, set a temporary one-time password and tick User must change password at next logon. Tick Unlock the user’s account if it is locked.
  3. Tell the user the temporary password through a safe channel (not email to an unverified address), and ask them to change it immediately.
  4. Record the ticket with what you verified and did.
Get-ADUser jdoe -Properties LockedOut, PasswordExpired, LastLogonDate
Unlock-ADAccount -Identity jdoe
Set-ADAccountPassword -Identity jdoe -Reset -NewPassword (Read-Host -AsSecureString "New temporary password")
Set-ADUser jdoe -ChangePasswordAtLogon $true

(Using Read-Host -AsSecureString keeps the password out of the command history.)

Add or remove group membership

Add-ADGroupMember    -Identity "Finance-Staff" -Members jdoe
Remove-ADGroupMember -Identity "Finance-Staff" -Members jdoe -Confirm:$false
Get-ADPrincipalGroupMembership jdoe | Select-Object Name

Group membership is read when a user signs in (it is in their access token), so after a change the user must sign out and back in (or restart) before it takes effect. That is the cause of many “you added me but it still says access denied” tickets.

Check account status and common problems

Symptom What to check
“Wrong username or password” Typing error, Caps Lock, expired password, account locked, account disabled, wrong domain (use DOMAIN\user or the UPN user@corp.example.com)
“Your account has been locked out” Unlock it, then find what caused it (below)
“Your account has been disabled” A leaver, or a security action; do not re-enable without approval
“Your password has expired” Standard change process; remote users may need a VPN to change it
Cannot sign in on a new PC Domain join, network connectivity to a DC, DNS settings, time skew
Access denied to a folder Group membership; the user has not re-signed in; the share and NTFS permissions both need to allow it

Why accounts lock out

A lockout policy locks an account after a number of failed attempts (for example five in 30 minutes) to slow guessing. Most lockouts are not attacks but old credentials retrying:

  • a phone or tablet mail app with the old password,
  • mapped drives or saved credentials in Credential Manager,
  • a service, scheduled task or script running as the user,
  • another computer where the user is still signed in (a remote desktop session, a colleague’s PC),
  • Outlook or Teams profiles, or a VPN client.

To find the source: the domain controller logs Event ID 4740 (account locked out) and names the caller computer. Microsoft’s Account Lockout Status tools and the Event Viewer on the PDC emulator show it. Then clear the stale credential (update the saved password) and unlock the account. Repeated lockouts from an unfamiliar computer or a foreign address may be a password-guessing attack: escalate to security.

Joining a computer to the domain, and “trust relationship” errors

Every domain-joined PC has a computer account and a secret it changes periodically with the domain. If the PC is restored from an old image or snapshot, or the computer account was deleted or reset, you may see “The trust relationship between this workstation and the primary domain failed.”

Fixes (with local administrator or domain permissions):

Test-ComputerSecureChannel -Verbose                 # is the secure channel healthy?
Test-ComputerSecureChannel -Repair -Credential (Get-Credential)   # repair it (needs domain admin credentials)

Or remove the PC from the domain and re-join it (keeping the same computer name when you can). Common causes of domain join failures: the PC’s DNS does not point to a domain controller (it must use the domain’s DNS, not a public one), the clock is wrong, the name already exists, or a firewall or VPN blocks the connection.

Group Policy troubleshooting

GPOs apply to users and computers by where the object is (the OU), security filtering and inheritance.

gpupdate /force          refresh policy now
gpresult /r              summary of applied policies (add /scope user or computer)
gpresult /h report.html  a full report you can open in a browser

Typical issues: the PC is not on the corporate network or VPN, so it cannot reach a DC; the policy applies to a different OU; loopback or filtering settings; or a replication delay between DCs. Policies refresh by default every 90 minutes (plus at sign-in and start-up), so a change may take time unless you force it.

Joiner, mover, leaver

The user lifecycle is the most important process around accounts.

Joiner (new starter)

  1. Receive an approved request from HR or the manager (never from the new user alone).
  2. Create the account from a template, following the naming convention (for example firstname.lastname, with a rule for duplicates).
  3. Place it in the right OU and groups for the role (copy a similar role, but check, because copying a colleague can carry unnecessary access).
  4. Create the mailbox and licences (see the Microsoft 365 lesson), set a temporary password, require MFA registration, and prepare the device.
  5. Give access to shared drives and applications through groups, and record everything in the ticket.

Mover (role change)

Update the OU, remove old role groups and add new ones (permissions that accumulate over time, “privilege creep”, are a real security risk), and review mailbox and device access.

Leaver

On the agreed date and time (immediate if dismissal):

  1. Disable the account (do not delete it yet), reset the password, revoke sessions and tokens, and remove MFA devices.
  2. Remove from groups and distribution lists, and move to a “disabled users” OU.
  3. Handle the mailbox (convert to shared, forward or delegate access to the manager, or retain under policy) and files.
  4. Collect equipment and wipe or reassign it; remove the device from management.
  5. Recover licences, and remove access to third-party systems (SaaS, VPN, building access).
  6. Delete the account only after the retention period set by policy.

Offboarding done late or incompletely is a common source of data leaks.

Doing it safely

  • Least privilege: use your normal account for daily work and a separate admin account for administrative tasks.
  • Write down what you did and why: auditors and investigators rely on tickets and logs.
  • Do not share your admin credentials or do tasks “on behalf of” someone without authority.
  • Never disable security controls (MFA, lockout) to “make a ticket go away”.
  • Treat user data as confidential: do not browse accounts out of curiosity.
  • Test before bulk changes: a typo in a PowerShell command run against 500 users is painful. Use -WhatIf and a small sample first.
  • Keep the naming convention consistent and document exceptions.

If the organisation uses Entra ID or Google Workspace instead of (or as well as) on-premises AD, the same concepts apply (users, groups, roles, policies), but the tools are web portals, and hybrid setups synchronise accounts from AD to the cloud (changes made in the cloud for a synchronised user may be overwritten). Self-service password reset (SSPR) and MFA reduce help desk load and improve security: know how your organisation configures them.

A new accountant's colleague says 'just make her an exact copy of my account so she gets everything I have'. What are the problems, and what do you do instead?

Copying a colleague’s account can carry unnecessary access, old group memberships and exceptions that were never meant for a new starter, which breaks least privilege. Use an approved role template or the documented group list for the Accountant role, confirm the access with the manager or HR through the request, and record it in the ticket. Add anything extra only on approval.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Explain how groups and OUs are used to manage access and settings, and why access should be given to groups rather than individuals.
  • Describe how you would find and fix the cause of a user whose account keeps locking out.
  • Walk through the leaver process, and why accounts are disabled before they are deleted.

Hands-on practice

Write the functions marked TODO. The checks read the variables your program leaves behind, so keep the lines at the bottom as they are, run it, then press Check my work.

Distinguished names, lockouts, passwords and nested groups — Python 3
YOUR CODE (edit here, then press Run)
Ctrl/⌘ + Enter
OUTPUT

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Active Directory and User Account Management for the Help Desk. What would you like to know?
📝

Knowledge Check

1 of 4

What is the main purpose of Active Directory in an organisation?

Report a problem

About: /lessons/active-directory-and-user-account-management