AD Security, Monitoring, Backup & Recovery
AZ-800 Exam Alignment
AZ-800
Secure, monitor, back up, and recover Active Directory: Configure fine-grained password policies, implement the Protected Users security group, configure audit policies, enable the AD Recycle Bin, perform System State backups, and recover from AD failures.
- Know how Fine-Grained Password Policies (PSOs) work and how to apply them to users or groups
- Understand the Protected Users security group — what protections it provides and what it does NOT protect
- Know key security event IDs: 4720 (account created), 4740 (account locked out), 4726 (account deleted), 4732 (member added to group)
- Know the difference between authoritative and non-authoritative restore — when each is used
🔒 Fine-Grained Password Policies (PSOs)
The default domain password policy applies to all accounts in the domain. Fine-Grained Password Policies (Password Settings Objects — PSOs) allow you to apply different password requirements to specific users or groups — for example, a stricter policy for IT admins.
| Setting | Description | Example Values |
|---|---|---|
| Minimum Password Length | Minimum number of characters required | 14 characters for admins, 10 for standard users |
| Password Complexity | Requires uppercase, lowercase, number, and symbol | Enabled for all PSOs |
| Password History | Number of previous passwords that cannot be reused | 24 passwords remembered |
| Maximum Password Age | How long a password can be used before expiry | 90 days for standard, 30 days for privileged |
| Minimum Password Age | Minimum time before a password can be changed again | 1 day (prevents rapid cycling to get back to old password) |
| Account Lockout Threshold | Failed attempts before account is locked | 5 attempts |
| Account Lockout Duration | How long the account stays locked (0 = until admin unlocks) | 30 minutes |
| Precedence | When multiple PSOs apply to a user, the one with the lowest precedence number wins | 1 = highest priority |
💡 PSO Application Rules
- PSOs can be applied directly to users or Global security groups — not to OUs or Universal groups
- If a PSO is applied to a user directly AND via a group, the direct PSO assignment wins regardless of precedence
- If multiple PSOs apply via group memberships, the one with the lowest precedence number wins
- If no PSO applies, the domain password policy applies
- PSOs are configured in Active Directory Administrative Center (ADAC) — not ADUC or GPMC
🔐 Protected Users Security Group
The Protected Users security group (available at Windows Server 2012 R2+ domain functional level) provides enhanced security for privileged accounts by restricting authentication protocols and credential caching.
| What Protected Users PREVENTS | Why This Matters |
|---|---|
| Kerberos RC4 encryption (NTLM hash-based) | Forces AES-only Kerberos — eliminates pass-the-hash attacks using Kerberos |
| NTLM authentication entirely | Eliminates NTLM-based pass-the-hash and relay attacks for group members |
| Credential caching (CredSSP, Digest, WDigest) | Prevents credentials from being stored in memory — reduces credential theft risk |
| Kerberos delegation (constrained or unconstrained) | Prevents service impersonation attacks using delegated credentials |
| Kerberos TGT lifetime beyond 4 hours | Reduces the window for stolen ticket reuse |
⚠️ Protected Users: Test Before You Apply
Adding an account to Protected Users will break NTLM authentication for that account entirely. Applications that use NTLM (older applications, some services) will fail. Service accounts that use delegation will stop working. Always test in a non-production environment before adding privileged accounts, and never add service accounts without testing. Also note: this group protects against credential theft — it does NOT prevent phishing or social engineering.
📍 AD Security Audit Events
| Event ID | Description | Level |
|---|---|---|
| 4720 | A user account was created: jsmith | Audit Success |
| 4740 | A user account was locked out: jdoe | Audit Success |
| 4732 | A member was added to a security-enabled local group | Audit Success |
| 4625 | An account failed to log on | Audit Failure |
| Event ID | Description | Where Logged |
|---|---|---|
| 4720 | A user account was created | DC where object was created |
| 4722 | A user account was enabled | DC |
| 4723 | An attempt was made to change an account’s password | DC |
| 4724 | An attempt was made to reset an account’s password | DC |
| 4725 | A user account was disabled | DC |
| 4726 | A user account was deleted | DC |
| 4728 | A member was added to a security-enabled global group | DC |
| 4732 | A member was added to a security-enabled local group | DC |
| 4740 | A user account was locked out | PDC Emulator |
| 4625 | An account failed to log on | Machine where logon was attempted |
# Create a Fine-Grained Password Policy (PSO) New-ADFineGrainedPasswordPolicy -Name 'TC-AdminPSO' -Precedence 1 -MinPasswordLength 16 -ComplexityEnabled $true -PasswordHistoryCount 24 -MaxPasswordAge '30.00:00:00' -LockoutThreshold 3 # Apply the PSO to an admin group Add-ADFineGrainedPasswordPolicySubject -Identity 'TC-AdminPSO' -Subjects 'TC-IT-Admins' # Enable the AD Recycle Bin (irreversible) Enable-ADOptionalFeature -Identity 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'techcareers.local' -Confirm:$false # Restore a deleted user from the Recycle Bin Get-ADObject -Filter {displayName -eq 'John Smith'} -IncludeDeletedObjects | Restore-ADObject # Backup AD (System State) - run on each DC wbadmin start systemstatebackup -backuptarget:E: -quiet # Add admin account to Protected Users group Add-ADGroupMember -Identity 'Protected Users' -Members 'jsmith'
📋 AD Recycle Bin vs Authoritative Restore
| Feature | AD Recycle Bin | Authoritative Restore |
|---|---|---|
| Prerequisites | Must be enabled BEFORE deletion. Requires WS2008R2+ FFL. | System State backup taken before the deletion/corruption. |
| Recovery scope | Recovers individual objects with all attributes and links intact (including group memberships) | Recovers the entire AD database to the backup point — loses all changes made after backup |
| Replication effect | Restored object replicates normally as a new change | Authoritative objects are given a higher USN and replicate outward, overriding copies on other DCs |
| When to use | Recovering accidentally deleted users, groups, OUs, computers — when Recycle Bin was enabled | AD database corruption, mass deletion when Recycle Bin was NOT enabled, or recovering tombstoned objects |
| Non-authoritative restore | N/A | Recovers the DC’s own database to a point in time and lets normal replication update it — used when a DC’s database is corrupted but other DCs are current |
💡 Best Practices
- Enable the AD Recycle Bin immediately after forest creation — it is irreversible to enable and saves costly restores when objects are deleted accidentally
- Create PSOs for privileged accounts (Domain Admins, service accounts) with higher complexity, shorter maximum age, and stricter lockout than standard users
- Add all privileged admin accounts to the Protected Users security group — never add service accounts without testing first
- Back up System State on at least one DC per site daily using
wbadminor Windows Server Backup — AD backups must be less than 60 days old (tombstone lifetime) - Enable advanced audit policies (Account Management, DS Access, Logon/Logoff) and forward security logs to a SIEM for alerting on Event IDs 4720, 4726, 4732, 4740
- Implement the tiered administration model — Tier 0 (DCs, AD), Tier 1 (servers), Tier 2 (workstations) — to prevent credential theft from cascading up to AD
🎓 Interview Q&A
adminCount=1 on protected accounts, which persists even after removal from privileged groups.IT admins need a stricter password policy (16 characters minimum, 30-day max age) than standard users (10 characters, 90-day max age) without affecting the entire domain. What is the correct solution?
An administrator accidentally deleted 200 user accounts in the HR OU. The AD Recycle Bin was enabled 2 months ago. What is the fastest recovery method?
You want to monitor when a user account is added to the Domain Admins group. Which event ID should you filter for in the Security event log on domain controllers?
A DC’s AD database has been corrupted. The other two DCs in the domain are healthy and have current data. What restore method should you use?
A Domain Admin account has been added to the Protected Users security group. Shortly after, an application that previously worked stops authenticating. What is the most likely cause?
You’ve completed all 8 modules of the Active Directory Administration course. You are now prepared for the AZ-800 exam and equipped to administer real-world AD DS environments.