Created
May 21, 2014 10:13
-
-
Save athalean/f0abbb817f0d6dce3829 to your computer and use it in GitHub Desktop.
query ActiveDirectory and exclude inactive users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(&(sAMAccountName=%(user)s)(!(userAccountControl:1.2.840.113556.1.4.803:=2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment