Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
@echo off cls for /f "tokens=*" %%a in ('dsquery group "OU=x,DC=y" ^|sort') do (call :oumembers %%a) exit /b :oumembers set ougroup=%1 echo %ougroup% >>ou-group-members.csv ::pause for /f "tokens=*" %%b in ('dsget group %ougroup% -members ^|sort') do (call :usersamid %%b) goto :eof :usersamid set userid=%1 for /f "tokens=*" %%c in ('dsquery user %userid% -o samid') do echo ,%%c >>ou-group-members.csv goto :eof
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.