This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LDAP Query to find all disabled computers?

I'm having trouble creating a query to find all disabled workstations. I've attached a picture of my query. When I run it errors with "The specified search filter is invalid". I've set this to run in specific workstation containers but I get the same error.

 

 

  • 0

    Try this ldap filter instead. This works for me...

     

    (&(&(objectCategory=computer)(objectClass=user)(useraccountcontrol:1.2.840.113556.1.4.803:=2)))

  • Suggested Answer

    0  

    Hello,

    As mentioned previously, you can use a search string of: (&(&(objectCategory=computer)(objectClass=user)(useraccountcontrol:1.2.840.113556.1.4.803:=2))) . This should return only the disabled computer accounts.