Query in the Form RRS feed

  • Question

  • Greeting,

    I did a form for user input the following information:


      |        Card number:             |

      |        Name:                        |


    "Card number" for user input.

    "Name" allow user to put part of the user name, then do the quety in AD found name then input back

    for example, input "joh"

    then it will show a small window: with 2 users:

    john smith

    Johnston Dave.

    User select John smith, the "name" box will filling "name" as "John smith"

    just the GUI part. query code all ready

    Thanks and Best Regards,

    userausera (newbie in powershell)

    Friday, February 23, 2018 8:46 PM

All replies

  • What is your question?   Post your code with any error messages.

    To get all matches in AD:

    $part = 'joh'

    Get-AdUser -Filter "SamAccountName -Like '$part*'"



    • Edited by jrv Friday, February 23, 2018 8:57 PM
    Friday, February 23, 2018 8:55 PM