Powershell Commands Related To Active Directory Computers

Hello Friends, This blog containing the Powershell commands related to Active Directory Computers. Powershell is designed to fetch out these all sort of information.

So please go through the below commands and get desired outcomes.

Powershell Commands Related To Active Directory Computers

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:

3 thoughts on “Powershell Commands Related To Active Directory Computers

Leave a Reply