Count Computer Objects in Active Directory
Posted on 2009-02-17
I need help creating a script (vb or powershell) to count the total number of computer objects throughout an AD domain. Getting a total count is easy, however I need a script to recursively discover and count enabled computer objects throughout a domain without specifying every path where these objects are located.
Input would be: domain.com
Output would be: distinguishedName where computer objects were discovered, total of enabled computer objects