Hi guys,
I was busy at work to query our AD for a list of only security groups. Well, after a bit of struggling i found the query i needed:
If you need to query your AD for a list of specific group here’s the query you need.
All Security Groups with a type of Security
(&(objectCategory=group)(groupType:1.2.840.113556.1.4.803:=2147483648))
All Security Groups with a type of Global
(&(objectCategory=group)(groupType:1.2.840.113556.1.4.803:=2147483650))
All Security Groups with a type of Domain Local
(&(objectCategory=group)(groupType:1.2.840.113556.1.4.803:=2147483652))
All Security Groups with a type of Universal
(&(objectCategory=group)(groupType:1.2.840.113556.1.4.803:=2147483656))
Until next time.
Greetz,
Jack