< Back

Add-ToLocalGroup

Fri Jan 10, 2020 8:37 pm

NAME Add-ToLocalGroup



SYNTAX

Add-ToLocalGroup [[-ComputerName] <string[]>] [-LocalGroup] <string> [[-DomainName] <string>] [-Type] {User |

Group} [-Identity] <string> [<CommonParameters>]





PARAMETERS

-ComputerName <string[]>

Destination Computer name



Required? false

Position? 0

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-DomainName <string>

Domain or workgroup name



Required? false

Position? 2

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Identity <string>

Identity to add



Required? true

Position? 4

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-LocalGroup <string>

Local Group to add Identity to



Required? true

Position? 1

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Type <string>

Type of Identity to add



Required? true

Position? 3

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? 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

None





OUTPUTS

System.Management.Automation.PSObject





ALIASES

None





REMARKS

None