< Back

Add-LocalGroupMember

Sat Jan 18, 2020 9:45 am

NAME Add-LocalGroupMember



SYNOPSIS

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





SYNTAX

Add-LocalGroupMember [-GroupName] <String[]> [[-Computername] <String[]>] [-name] <String[]> [<CommonParameters>]





DESCRIPTION

Add 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



<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:\\>Add-LocalGroupMember -name TestUser1 -groupname Testgroup -computername remotepc1















RELATED LINKS





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Disable-LocalUser; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Disable-LocalUser [-Name] <string[]> [[-Computername] <string[]>] [-WhatIf] [-Confirm]

[<CommonParameters>]



ModuleName : localaccount

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Disable-LocalUser

Category : Function

Component :

Role :

Functionality :