Skip to main content

Active Directory | Failed or Incomplete Data Collection for Users, Computers, Groups, DNS, or DHCP

Active Directory, Data missing, Users, Groups, Computers, Task timed out, Unable to obtain DNS hostname, Unable to resolve the DNS hostname, Incomplete Data, AD

Updated over a week ago

Overview πŸ’₯

In some environments, the Active Directory Inspector may successfully run but fail to collect data for specific components such as:

βœ… Users
βœ… Computers
βœ… Groups
βœ… DNS
βœ… DHCP

Partners typically notice:

  • Missing or incomplete Dataprints

  • Alerts not triggering correctly

  • Inspection failures or timeouts

  • Data appearing intermittently

Common log errors include:

Task timed out after 600 seconds
No such host is known
Unable to resolve DNS hostname
Unable to obtain DNS hostname of domain controller
The specified module 'DhcpServer' was not loaded

βœ… Important Understanding

The Active Directory Inspector does not generate directory data.

It reads information directly from:

  • Domain Controllers

  • Active Directory Services

  • DNS infrastructure

  • DHCP services

If Windows or Active Directory cannot return data reliably, the inspector cannot collect it.


How the Active Directory Inspector Works πŸ€”

Understanding this eliminates most confusion.

Liongard Agent
β”‚
β–Ό
Discover Domain Controllers via DNS
β”‚
β–Ό
Connect using AD PowerShell Queries
β”‚
β–Ό
Query AD Objects + Infrastructure
β”‚
β–Ό
Return Dataprint to Liongard Platform

Failure at any step results in missing object types.


Why This Happens 🧐

Below are the real technical causes, ordered by frequency.

🌐 1. DNS Resolution Problems (Most Common Cause)

Active Directory heavily depends on DNS.

If the Liongard Agent cannot resolve a Domain Controller hostname:

❌ Connection fails
❌ Queries timeout
❌ Data collection stops

Typical causes:

  • Stale DNS records

  • Decommissioned Domain Controllers

  • Incorrect DNS server configured

  • Missing DNS suffix

πŸ–₯️ 2. Offline or Stale Domain Controllers

Active Directory may still advertise Domain Controllers that:

  • No longer exist

  • Are powered off

  • Failed demotion cleanup

The inspector attempts connection β†’ waits β†’ timeout occurs.

Result:

Task timed out after 600 seconds
Unable to obtain DNS hostname

βš™οΈ 3. Missing PowerShell / RSAT Modules

The inspector relies on Microsoft modules:

Module

Purpose

ActiveDirectory

Queries Users, Groups, Computers

DhcpServer

Collects DHCP configuration

If missing β†’ collection fails silently.

🧩 4. Active Directory Replication Issues

Each Domain Controller may contain slightly different data.

Broken replication causes:

  • Partial Users list

  • Missing Groups

  • Inconsistent inspections

πŸ” 5. Permission or GPO Restrictions

Security hardening or restrictive GPOs may block read operations required by inspection.

🐘 6. Large Active Directory Environments

Very large environments can exceed execution time limits.

Example:

  • 50,000+ users

  • Multi-site domains

  • High latency between agent and DC


Common Error β†’ Cause Mapping πŸ‘€

Log Message

Meaning

Task timed out

DC unreachable or slow

No such host is known

DNS failure

Module not loaded

RSAT missing

Unable to resolve hostname

Stale DC entry

Partial Dataprint

Replication or permissions


Step To Resolve πŸ‘¨β€πŸ’»

1️⃣ Run Inspector in Debug + Clear Cache Mode

Why We Do This?

Removes cached results and forces a fresh Active Directory query.

How?

Admin β†’ Inspectors β†’ Active Directory
Right-click Inspector
Run β†’ Clear Cache + Debug Mode

What This Shows:

Debug logs reveal exact failure point:

  • Users

  • DNS

  • DHCP

  • Groups

2️⃣ Verify Domain Controller Discovery (DNS Test)

Why This Matters?

Active Directory discovery happens entirely through DNS.

If DNS fails β†’ inspection fails.

1. Run on Liongard Agent Server:

nltest /dclist:yourdomain.local

What This Command Does:

  • Queries Active Directory

  • Lists all advertised Domain Controllers

Expected Result:

All returned DC's must exist and be reachable.

2. Test DNS Resolution

Resolve-DnsName <DomainControllerFQDN>

βœ… Confirms hostname resolves to IP.

3. Test Network Connectivity

Test-Connection <DomainControllerName>

βœ… Confirms network communication.

If Failure Occurs, Likely causes are:

  • Offline DC

  • Incorrect DNS record

  • Firewall issue

3️⃣ Confirm Agent DNS Configuration

Why?

The agent must use Active Directory DNS, not public DNS.

Run:

ipconfig /all

Verify:

βœ… DNS server = Domain Controller
βœ… DNS suffix matches domain
❌ Google / ISP DNS configured

4️⃣ Verify Required PowerShell Modules

Why This Is Required?

Liongard queries AD using Microsoft cmdlets like:

Get-ADUser
Get-ADComputer

These exist only when RSAT components are installed.

Check Modules:

Get-Module -ListAvailable ActiveDirectory
Get-Module -ListAvailable DhcpServer

Install Missing Modules:

Install-WindowsFeature RSAT-AD-PowerShell
Install-WindowsFeature RSAT-DHCP

Expected outcome:

βœ… Modules load successfully

βœ… Inspector retrieves data

5️⃣ Validate Active Directory Query Performance

Why?

Confirms AD itself responds normally.

Run:

Get-ADUser -Filter * -ResultSetSize 10
Get-ADComputer -Filter * -ResultSetSize 10
Get-ADGroup -Filter * -ResultSetSize 10

What This Tests:

  • AD responsiveness

  • Permissions

  • Query execution health

Interpretation:

Result

Meaning

Fast output

Healthy AD

Slow response

Performance issue

Errors

Permission/module issue

6️⃣ Check Domain Controller Health

Run on a Domain Controller:

dcdiag /v

What It Does:

Microsoft diagnostic verifying:

  • DNS health

  • Authentication

  • Replication

  • DC availability

Check replication:

repadmin /replsummary

Why It's Important?

Inspector queries may hit different DCs.

Replication failure = inconsistent data.

7️⃣ Validate Active Directory Sites & Services

Open:

Active Directory Sites and Services

Confirm:

βœ… All DCs are active
βœ… No removed servers remain
βœ… NTDS connections valid

Remove stale entries if found.

8️⃣ Restart Agent After Fixes

Restart-Service LiongardAgent

Why?

  • Reloads environment

  • Clears cached connections

  • Applies DNS/module fixes


Troubleshooting Flow 🧭

Missing AD Data
β”‚
β–Ό
Run Debug Inspection
β”‚
β–Ό
DNS Resolution OK?
β”œβ”€β”€ No β†’ Fix DNS / Remove stale DC
└── Yes
β”‚
β–Ό
Modules Installed?
β”œβ”€β”€ No β†’ Install RSAT
└── Yes
β”‚
β–Ό
AD Queries Work?
β”œβ”€β”€ No β†’ Permission / DC issue
└── Yes
β”‚
β–Ό
Replication Healthy?
β”œβ”€β”€ No β†’ Fix AD replication
└── Yes
β”‚
β–Ό
Inspection Successful βœ…

Security & Operational Impact πŸš€

Unhealthy AD environments may indicate:

  • Stale Domain Controllers

  • Lingering authentication objects

  • Incorrect DNS trust paths

  • Increased attack surface

Fixing inspection failures often improves overall AD security posture.


When to Contact Liongard Support 🦁

If the issue persists, Open a ticket: Click the support icon or visit support.liongard.com

Provide:

βœ… Inspector Debug Logs
βœ… Agent OS + Version
βœ… Output of:

1. dcdiag /v
2. repadmin /replsummary
3. Resolve-DnsName <DomainControllerFQDN>
4. Resolve-DnsName <DomainControllerFQDN>
5. Get-Module -ListAvailable ActiveDirectory
6. Get-Module -ListAvailable DhcpServer
7. nltest /dclist:yourdomain.local
8. Get-ADUser -Filter * -ResultSetSize 10
9. Get-ADComputer -Filter * -ResultSetSize 10
10. Get-ADGroup -Filter * -ResultSetSize 10

βœ… Number of Domain Controllers
βœ… Screenshot of missing Dataprint section


Additional Resources 🀩

Did this answer your question?