Skip to content

Instantly share code, notes, and snippets.

@jpierson
Last active July 15, 2021 17:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpierson/774d39f6f76d404be031cd5c6efc290a to your computer and use it in GitHub Desktop.
Save jpierson/774d39f6f76d404be031cd5c6efc290a to your computer and use it in GitHub Desktop.
Useful Windows Active Directory commands

Useful Windows commands for finding information on Active Directory groups and users.

Get a list of groups on the domain

net group /domain

List groups your current user belongs to

whoami /groups

List group policy information for the current user

gpresult /V

List groups and other details for any given user.

net user TheUser /domain

List all users that are members of a given group

net group MyGroup /domain

View information for a specific computer on the network.

net view Hostname /domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment