> For the complete documentation index, see [llms.txt](https://www.netexec.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.netexec.wiki/smb-protocol/modify-group.md).

# Modify Group

If a user has privileges such as AddMember, AddSelf, etc. over a group, this module can add or remove users from that group.

### Add User to Group

Just specify the target user and target group name.

```bash
nxc smb <ip> -u user -p pass -M modify-group -o USER=TargetUser GROUP=TargetGroup
```

### Remove User from Group

If want to remove the target user from the group, just specify the `REMOVE=True` option.

```bash
nxc smb <ip> -u user -p pass -M modify-group -o USER=TargetUser GROUP=TargetGroup REMOVE=True
```
