WMI Query on LDAP › Forums › Desktop Info › WMI Query on LDAP This topic has 1 reply, 2 voices, and was last updated 3 years, 10 months ago by Glenn. Viewing 1 reply thread Author Posts 22 September, 2018 at 4:58 am #572 Alexandre Hi, I want to do a query on root\directory\LDAP My query is : SELECT * FROM ads_user WHERE DS_sAMAccountName=’%username%’ But it don’t work. Can you help me ? Regards, Alex 22 September, 2018 at 6:56 am #574 GlennKeymaster What does %username% represent? Is this a user variable? Author Posts Viewing 1 reply thread The topic ‘WMI Query on LDAP’ is closed to new replies.