The command: "NET HELP GROUP" is on Windows 12, 11, 10, .. , MS Server 2025, 2022, 2019, .. available
The
`NET GROUP` command is used in the Windows command line (
`cmd`) to manage group information on a Windows network. Here are examples of how to use this command, along with detailed descriptions:
Example 1: View all groups on the local computer
net group
Description:
This command lists all groups on the local computer. The output contains information such as the group name, comments, and the members of the groups.
Example 2: View members of a specific group
net group "group name"
Description:
A list of members for the specified group named
"Group Name" is displayed here. Replace
"Group Name" with the actual name of the group.
Example 3: Adding a user to a group
net group "group name" user name /add
Description:
This command adds the user named
"username" to the group
"groupname". The
`/add` switch indicates that a user should be added.
Example 4: Removing a user from a group
net group "group name" user name /delete
Description:
Here the user named
"Username" is removed from the group
"Groupname". The
`/delete` switch indicates that a user should be removed.
Example 5: View details about a group, including members
net group "group name" /domain
Description:
This command displays detailed information about a group, including members if the group is based on a domain. The
`/domain` switch specifies that the group should be queried on a domain.
Example 6: Creating a new group
net group "NewGroup" /add /comment:"A new group" /domain
Description:
This command creates a new group named NewGroup. The
`/add` switch indicates that a group should be added. The comment is set to
"A new group" and the
`/domain` switch specifies that the group should be created on a domain.
Example 7: View a user's group memberships
net user "username" /domain
Description:
This shows which groups the user named
"Username" belongs to on a domain. The
`/domain` switch indicates that the user should be queried on a domain.
Please note that the availability of certain options may vary depending on the version of Windows. You can use
`NET GROUP /?` in the command prompt to check the specific options and syntax details.