DSQUERY with Multiple parameters

Home Forums Scripting General Scripting DSQUERY with Multiple parameters

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    m80arm
    Member
    #122168

    Anyone know if it’s possible to use DSQUERY with multiple parameters. I want to query AD with 15 accounts and return when they expire. I have tried the following:

    dsquery user domainroot -name “username1, username2” | dsget user -acctexpires
    dsquery user domainroot -name username1 username2 | dsget user -acctexpires
    dsquery user domainroot -name username1; username2 | dsget user -acctexpires

    Reading the DSQUERY help it states the followin:

    “If you supply multiple values for a parameter, use spaces to separate the values (for example, a list of distinguished names).
    ” but it doesn’t work

    Michael

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.