Skip to content

Instantly share code, notes, and snippets.

@FirehaK
Created May 18, 2012 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FirehaK/2727615 to your computer and use it in GitHub Desktop.
Save FirehaK/2727615 to your computer and use it in GitHub Desktop.
dump names from an active directory group
@echo off
Set /p GROUP="Group Name: "
echo This window will close when finished!
echo Larger groups may take a while!
dsquery group -name "%GROUP%" | dsget group -members | dsget user -samid -display > "%GROUP%".txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment