To check the list of Users Group Membership

By | November 8, 2009

Check the list of Users Group Membership List

I have used “for” command to read the input file (list.txt) and execute the “net user” command for each user and store the result in output.txt file

For /f %a in (list.txt) do net user %a /dom >> output.txt

Note: run this command from where the input file (list.txt) there
Example: if you have the user list in c:temp then you have to run this command from there, this will create and store the output in output.txt file

Leave a Reply

Your email address will not be published. Required fields are marked *