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

About Yuri de Jager
Technology Addict

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: