PowerShell one liner to query only servers in AD
Let's say you want to query all the servers in AD, here is a PowerShell one liner to do it, you need to have Quest PowerShell commands for Active Directory installed of course.
Get-QADComputer -sizelimit 0 -OSName '*server*'|export-csv Servers.csv
You could limit the search to a particular OU by using the -searchroot switch.