Created
May 18, 2012 21:06
-
-
Save FirehaK/2727615 to your computer and use it in GitHub Desktop.
dump names from an active directory group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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