Skip to content

Remove User From Local Group

Removes an existing user account from a specified local group.

Required

Specifies the user to remove from the group. Use plain username (e.g. JohnDoe) for local users, or Domain\Username (e.g. CORP\JohnDoe) for domain users.

Required

Specifies the local group name or SID to remove the user from.

  • Category: User management
  • Brick ID: UsrMgr-RemoveUserFromLocalGroup
{
"category": "userManagement",
"description": "Removes an existing user account from a specified local group.",
"developerVendor": "CapaSystems A/S",
"displayName": null,
"id": "UsrMgr-RemoveUserFromLocalGroup",
"name": "Remove User From Local Group",
"parameters": [
{
"defaultValue": "",
"defaultValueObject": null,
"description": "Specifies the user to remove from the group. Use plain username (e.g. JohnDoe) for local users, or Domain\\Username (e.g. CORP\\JohnDoe) for domain users.",
"id": "Username",
"name": "Username",
"regExValidation": "",
"required": true,
"type": "TextBox",
"value": null,
"values": [],
"valuesObject": null
},
{
"defaultValue": "",
"defaultValueObject": null,
"description": "Specifies the local group name or SID to remove the user from.",
"id": "GroupName",
"name": "Group Name",
"regExValidation": "",
"required": true,
"type": "TextBox",
"value": null,
"values": [],
"valuesObject": null
}
],
"powershell": {
"base64Encoded": true,
"function": "ZnVuY3Rpb2..."
},
"type": "powerbrick",
"version": "2026.7.2.1"
}