LDAP Query for specific Logon Script

Discussion in 'Scripting' started by CKA, Feb 14, 2006.

  1. CKA

    CKA Guest

    On a users Properties in Active Directory, there is a Profile Tab. I'd like
    to do a Custom LDAP query to find all the users that have say "MECH" in the
    textbox for Logon Script. I cannot find this LDAP Attribute name though :(
    Anyone know its name or even better, an example LDAP query with it used?
    Thanks much
     
    CKA, Feb 14, 2006
    #1
    1. Advertisements

  2. CKA

    Umesh Thakur Guest

    LDAP Attribute name for this login script text box is "ScriptPath".
    If you're running Win2003, run following command to get the desired result:

    dsquery * -filter "&(objectClass=User)(scriptPath=mech*)" -scope subtree
    -attr displayName scriptPath

    you can include any attribute in -attr property.

    OR, you can use CSVDE below on win2k/2k3

    csvde -f "d:\outputfilepath.csv" -r "
    "&(objectClass=User)(scriptPath=mech*)" -l "displayName,scriptPath"
     
    Umesh Thakur, Feb 14, 2006
    #2
    1. Advertisements

  3. CKA

    CKA Guest

    Thank-you!

     
    CKA, Feb 14, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.