top of page

How to Get All domain joined Computers List using the Powershell

In this command, we will see how to get all the computers in the domain using the PowerShell Command.

Use the below command to get the Complete Computers Reports.where the command has been enabled with filters where the required details to audit the Domain Joined Machine computers.

Get-AdComputer -Resultsetsize 100000 -Filter * –Properties CanonicalName,DNSHostName,Enabled,IPv4Address,lastLogon,LastLogonDate,lastLogonTimestamp,Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion,whenCreated | select CanonicalName,DNSHostName,Enabled,IPv4Address,lastLogon,LastLogonDate,lastLogonTimestamp,Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion,whenCreated | Export-csv Computers.csv

You can still use the filters for the Command Get-AdComputer to get more customized reports depends on the requirements.

Note: Do comment if required any specific PowerShell commands for any requirement.

0 views0 comments
bottom of page