Skip to main content

To dump a list of all the Windows groups the currently logged in user is a member of to "groups.txt".

:: To dump a list of all the Windows groups the currently logged in user is a member of to "groups.txt":
whoami /groups > groups.txt

:: Option Two:
cmd /k net user <user> /Domain