Active Directory

Get-ADComputer

SafeQuery AD computers

Get-ADComputer -Filter * -Properties LastLogonDate

Queries domain computers; useful for last-logon and stale-device audits.

Examples

  • Get-ADComputer -Filter 'Enabled -eq $false'List disabled computers

Syntax

Get-ADComputer -Filter <q> [-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