cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
NArezdog
Engaged Sweeper
Does anyone know how to report disabled computers in AD?
1 ACCEPTED SOLUTION
mmotti
Engaged Sweeper II
PowerShell definitely ideal for this.

Would probably be a fair amount quicker to run this, though:

Get-ADComputer -Filter 'Enabled -eq $false' -Properties Enabled | Select Name, Enabled


No need to grab all properties with Get-AdComputer if you are only selecting Name and Enabled.

Cheers,

Matt

View solution in original post

3 REPLIES 3
mmotti
Engaged Sweeper II
PowerShell definitely ideal for this.

Would probably be a fair amount quicker to run this, though:

Get-ADComputer -Filter 'Enabled -eq $false' -Properties Enabled | Select Name, Enabled


No need to grab all properties with Get-AdComputer if you are only selecting Name and Enabled.

Cheers,

Matt
harringg
Champion Sweeper
NArezdog wrote:
Does anyone know how to report disabled computers in AD?


I primarily use Lansweeper for all my network reporting, but when are there queries that I'm not able to run in LS (because data is not collected), I turn to PowerShell.

This will work in PowerShell v3 or greater. If you have a DC that is WIN 2008 R2 or greater, you have PowerShell installed.

get-adcomputer -Filter {(name -like "*") -and (enabled -eq $FALSE)} -properties * | Select Name, Enabled
Hemoco
Lansweeper Alumni
Lansweeper does not scan the computer status (enabled/disabled) from Active Directory, so this information cannot be included in reports unfortunately. We've added the feature to our wish list, but do not have a release date for it.