The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!
cls @echo off echo Processing DSQUERY to obtain MEMBER names.... dsquery group DC=hospitals,DC=local -name HspGroupName %1 | dsget group -members > c:\temp \1.txt echo DSQUERY MEMBERS -- DONE! echo Processing DSQUERY to obtain account names.... for /F "tokens=*" %%A in (c:\temp\1.txt) do dsquery * %%A -attr sAMAccountName name > c:\temp\2.txt