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
- Get-ADUserQuery AD users
- dsqueryQuery AD objects
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store