PowerShell

Get-ADUser

SafeQuery AD users

Get-ADUser -Identity <user> -Properties *

Queries Active Directory user attributes; check account state.

Examples

  • Get-ADUser -Filter "Enabled -eq '$false'"List disabled accounts

Syntax

Get-ADUser -Identity <user> [-Properties *]

Before you run it

Read-only; needs RSAT/AD module.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store