< Back

Remove-LocalGroupMember

Sat Jan 18, 2020 9:46 am

NAME Remove-LocalGroupMember



SYNOPSIS

Remove a local user to a local group in the Targeted computername





SYNTAX

Remove-LocalGroupMember [-GroupName] <String[]> [[-Computername] <String[]>] [-name] <String[]> [-WhatIf]

[-Confirm] [<CommonParameters>]





DESCRIPTION

Remove a local user to a local group in the Targeted computername





PARAMETERS

-GroupName <String[]>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Computername <String[]>



Required? false

Position? 2

Default value "$Env:computername"

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-name <String[]>



Required? true

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Int32





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-LocalGroupMember -name TestUser1 -groupname Testgroup -computername remotepc1















RELATED LINKS