Jorge's Quest For Knowledge!

All You Need To Know About Identity And Security On-Premises And In The Cloud. It's Just Like An Addiction, The More You Have, The More You Want To Have!

(2005-11-24) How To Find Users In AD With Dial-In Configuration?

Posted by Jorge on 2005-11-24


Go to www.joeware.net and download ADFIND (=free)

To find users within a certain OU that have dial-in = allowed run:
AdFind.exe -b "OU=<yourOU>,OU=<yourOU>,DC=<domain>,DC=<tld>" -f "(&(objectCategory=person)(objectClass=user)(msNPAllowDialin=TRUE))" distinguishedName samaccountname

To find users within a certain OU that have dial-in = denied run:
AdFind.exe -b "OU=<yourOU>,OU=<yourOU>,DC=<domain>,DC=<tld>" -f "(&(objectCategory=person)(objectClass=user)(msNPAllowDialin=FALSE))" distinguishedName samaccountname

To find users within a certain OU that have dial-in = through access policy run:
AdFind.exe -b "OU=<yourOU>,OU=<yourOU>,DC=<domain>,DC=<tld>" -f "(&(objectCategory=person)(objectClass=user)(!(msNPAllowDialin=*)))" distinguishedName samaccountname

AND if you want to search throught the domain instead of in a certain OU replace
-b "OU=<yourOU>,OU=<yourOU>,DC=<domain>,DC=<tld>"

with

-default

Cheers,
Jorge
———————————————————————————————
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always evaluate/test yourself before using/implementing this!
* DISCLAIMER:
https://jorgequestforknowledge.wordpress.com/disclaimer/
———————————————————————————————
############### Jorge’s Quest For Knowledge #############
#########
http://JorgeQuestForKnowledge.wordpress.com/ ########
———————————————————————————————

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: