PowerShell Genie

Get-ADUser is not recognized

Incident 2 min read Troubleshooting walkthrough

Documentation: Microsoft Learn

Work the problem

The command never starts

Fictional case: Get-Command cannot find Get-ADUser, and Get-Module -ListAvailable ActiveDirectory returns no result in this session.

Where should investigation focus first?

Reasoning notebook

Record the evidence that supports your answer and the check you would run next. Your notes stay in this browser — nothing is uploaded.

Why it happens

The AD cmdlets live in the ActiveDirectory module, which arrives with the RSAT feature rather than with PowerShell itself, so a plain member server has no copy to auto-load. Auto-loading only searches the directories listed in $env:PSModulePath, which means a module installed elsewhere stays invisible even with the files present on disk. Server Core images and containers frequently leave the feature out altogether.

Check this first

1PS> Get-Module -ListAvailable ActiveDirectory; Import-Module ActiveDirectory

What to look for

The command must be discoverable before it can contact a DC. Check RSAT/tool installation, edition and module paths.

Working through it

  1. Run Get-Module -ListAvailable ActiveDirectory and see whether anything comes back at all.
  2. Install the feature if the listing is empty: Add-WindowsCapability -Online -Name Rsat.ActiveDirectory.DS-LDS.Tools on a client, or Install-WindowsFeature RSAT-AD-PowerShell on a server.
  3. Call Import-Module ActiveDirectory explicitly and read the error, since a version mismatch reports differently from a missing file.
  4. Inspect $env:PSModulePath for the directory holding the module when the files exist but the listing came back empty.
  5. Confirm the console architecture matches, because a 32-bit host process cannot load the 64-bit module.

Avoiding it next time

Verify the repair: After installing or exposing the supported tools, verify Get-Command Get-ADUser and run a limited authorized read query.

Primary documentation

Active Directory PowerShell documentation

Work through the incident

Find a missing AD command

Get-ADUser is not recognized on this workstation.

Review the lesson

Genie guideGet-ADUser is not recognized

Start with the symptom, then inspect the checks and evidence. These are investigation steps; more than one cause may fit.