Thinking beyond the Limits..

Windows Operating SystemsWindows Server

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.



Your email address will not be published. Required fields are marked *

Related Posts