understanding the use of LDAPFilter This topic contains 4 replies, has 3 voices, and was last updated by Graham Beer 10 months, 2 weeks ago. Author Posts December 15, 2015 at 4:06 am #32957 Graham BeerParticipant I have this small line of code to find all Windows 10 machines: Get-ADObject -LDAPFilter "(&(operatingSystem=Windows 10 *) (objectClass=computer))" -SearchBase "DC=theaa,DC=local" -SearchScope Subtree | select DistinguishedName the line i'm interested in is "(&(operatingSystem=Windows 10 *) (objectClass=computer))" is the "(&(" and and ? so it allows the two filter requirements ? Not seen it written this way before. December 15, 2015 at 4:36 am #32959 Matt BloomfieldParticipant In LDAP syntax the comparison operator goes at the start of the clause so, in your, example. The filter translates to "give me all the objects where the operatingSystem attribute is 'windows 10' AND the object is a computer object". Lots of examples and how to use the syntax here: Active Directory LDAP Syntax Filters December 15, 2015 at 6:12 am #32967 Graham BeerParticipant Thank you Matt, very helpful. Good link as well. December 15, 2015 at 6:55 am #32971 Richard SiddawayModerator For lots of examples and a explanation of LDAP filters in use see the appendix of Learn Active Directory Management in a Month of Lunches. http://www.manning.com December 15, 2015 at 11:24 am #32996 Graham BeerParticipant Thank you Richard. Author Posts You must be logged in to reply to this topic.