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