Sometimes you may find that you need to export the list of which security and distribution groups a user belongs to into a text file. This is sometimes done for auditing purposes and sometimes required because that amount of text in a CMD prompt is just oo hard to navigate.
As you can see in the screenshot above, we are using the whoami command, but you can also use net user as we explain here.
This website uses cookies.