# UsrMgr_RemoveUserFromLocalGroup

> Removes a specified User from a Local Group.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/user-management-functions/usrmgr-removeuserfromlocalgroup/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Removes a specified User from a Local Group

### Syntax

UsrMgr_RemoveUserFromLocalGroup(sDomainName, sUserName, sGroupName) As Boolean

### Parameters

#### sDomainName (String)

The name of the Domain or the name of the Computer

#### sUserName (String)

Name of the User to be removed

#### sGroupName (String)

The Group where the User should be removed from

### Example

**VBScript**

```vb
If bStatus Then bStatus = UsrMgr_RemoveUserFromLocalGroup("Domain", "Username", "Group")
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
