| external help file | TeamViewerPS-help.xml |
|---|---|
| Module Name | TeamViewerPS |
| online version | https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Remove-TeamViewerUserGroupMember.md |
| schema | 2.0.0 |
Deletes members from a given user group.
Remove-TeamViewerUserGroupMember [-ApiToken] <SecureString> [-UserGroup] <Object> [-UserGroupMember] <Object[]>
[-WhatIf] [-Confirm] [<CommonParameters>]Remove-TeamViewerUserGroupMember [-ApiToken] <SecureString> [-UserGroup] <Object> [-User] <Object[]>
[-WhatIf] [-Confirm] [<CommonParameters>]Deletes one or many members from a user group. User group should belong to the TeamViewer company associated with the API access token.
PS /> Remove-TeamViewerUserGroupMember -UserGroup 1001 -UserGroupMember @(123, 456, 789)Removes the accounts 123, 456, 789 from the group with id 1001.
PS /> @(123, 456, 789) | Remove-TeamViewerUserGroupMember -UserGroup 1001Removes the accounts 123, 456, 789 from the group with id 1001.
Ids are passed as pipeline input.
PS /> Remove-TeamViewerUserGroupMember -UserGroup 1001 -User @('u123', 'u456', 'u789')Removes the users u123, u456, u789 from the group with id 1001.
PS /> Get-TeamViewerUserGroupMember -UserGroup 1001 | Remove-TeamViewerUserGroupMember -UserGroup 1001Removes all the users from the group with id 1001.
Ids are passed as pipeline input.
The TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseUsers to be removed from a user group.
Type: Object[]
Parameter Sets: ByUserId
Aliases: UserId
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThe group where members will be removed from.
Type: Object
Parameter Sets: (All)
Aliases: Id, UserGroupId
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseUser group members to be removed from a user group.
Type: Object[]
Parameter Sets: (ByUserGroupMemberId)
Aliases: MemberId, UserGroupMemberId
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
An array of account Ids.