Active Directory

dsquery

SafeQuery AD objects

dsquery user -name <name>*

Search AD for users/computers/groups by criteria.

Examples

  • dsquery computer -inactive 8PCs inactive 8 weeks

Syntax

dsquery <user|computer|group> -name <pattern>

Before you run it

Read-only.

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