Skip to content

UsrMgr\_RemoveUserFromLocalGroup

Removes a specified User from a Local Group

UsrMgr_RemoveUserFromLocalGroup(sDomainName, sUserName, sGroupName) As Boolean

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

VBScript

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

Scripting Guidelines