if there is anybody here that can help me I would be greatly appreciative, i have wrote a very basic script to look for disabled accounts etc, and account lock outs.
adding the 512 (normal account) to the 16 for lockout. Example below:
$search.Filter = “(&(objectClass=user)(userAccountControl=528))”
but this is not working :( if I do 512 instead of the 528 i get a list of accounts, can anyone see what I am doing wrong?