How to Export a Computer List from Active Directory

Every computer account, like every user account, is a door into your network. If computer accounts are not protected with proper password settings and disabled in a timely manner, or they are simply left unattended, they can be easily exploited by malicious actors. Regularly reviewing the list of all computers in your domain helps keep your IT environment clean and in line with proper security policy.

 1. Open the Powershell ISE → Run the following script, adjusting the path for the export:

Get-ADComputer -Filter * -Property * | Select-Object
Name,OperatingSystem,OperatingSystemVersion,ipv4Address | Export-CSV
ADcomputerslist.csv -NoTypeInformation -Encoding UTF8

2. Open the file produced by the script in MS Excel.
https://img.netwrix.com/howtos/Excel_9.png

Originally posted: https://www.netwrix.com/how_to_export_computer_list_from_ad.html