Powershell Command To Get Enable Computer List

Hello Friends, this post contains Powershell Command To Get Enable Computer List.

Active Directory Enable Computer List

Below command will give you all domain joined computer list which are enabled in Active Directory.

Get-ADComputer -Filter {(Enabled -eq $True)} -ResultPageSize 2000 -ResultSetSize $null -Server <DomainControllerName> -Properties Name, OperatingSystem

Below command will give same outcome as above and will take or export that result in csv file.
Get-ADComputer -Filter {(Enabled -eq $True)} -ResultPageSize 2000 -ResultSetSize $null -Server <AnyDomainController> -Properties Name, OperatingSystem | Export-CSV “E:\DisabledComps.CSV”

Thanks.

Other Posts:

4 thoughts on “Powershell Command To Get Enable Computer List

Leave a Reply