LDAP queries for finding Servers in your Active Directory by OS version

These are some LDAP queries for quickly finding servers in you Active Directory by Operating System:

2008 Enterprise:
(&(&(sAMAccountType=805306369)(objectCategory=computer)(operatingSystemVersion=6.0 \286001\29)(operatingSystem=Windows Server® 2008 Enterprise)))
2003:
(&(&(sAMAccountType=805306369)(objectCategory=computer)(operatingSystemVersion=5.2 \283790\29)(operatingSystem=Windows Server 2003)))

2008 Enterprise:

(&(&(sAMAccountType=805306369)(objectCategory=computer)(operatingSystemVersion=6.0 \286001\29)(operatingSystem=Windows Server® 2008 Enterprise)))

2003:

(&(&(sAMAccountType=805306369)(objectCategory=computer)(operatingSystemVersion=5.2 \283790\29)(operatingSystem=Windows Server 2003)))

Add these to the Saved Queries as a Custom Query in your Users and Computers MMC for a quick overview.
Advertisements
%d bloggers like this: