They say you learn something new every day.

Another couple of AD things today:

To find people I always use to use:

 (&(objectCategory=person)(objectClass=user)) 

 It turns out:

 (samAccountType=805306368)  

Is faster and more efficient.

This long, ugly looking number returns accounts that are disabled:

(userAccountControl:1.2.840.113556.1.4.803:=2)

Why they had to have such a horrible code for it, I don’t know.

Advertisements

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

Tag Cloud

%d bloggers like this: