Below is the script I use to find all computers in AD. How can I limit it to
just servers. I tried replacing the word computer with server but no luck.
$root = [ADSI]''
$searcher = new-object System.DirectoryServices.DirectorySearcher($root)
$searcher.filter = "(objectCategory=computer)"
$searcher.pageSize=1000
$searcher.propertiesToLoad.Add("name")
$computers = $searcher.findall()
Thanks for the support.
Jacob Sampson


