< Back

Add-AMAgentGroupMember

Sat Jan 11, 2020 2:24 am

NAME Add-AMAgentGroupMember



SYNOPSIS

Adds agents to an AutoMate Enterprise agent group.





SYNTAX

Add-AMAgentGroupMember -InputObject <Object> [-Agent] <Object> [<CommonParameters>]





DESCRIPTION

Add-AMAgentGroupMember adds agents to an agent group.





PARAMETERS

-InputObject <Object>

The agent group to modify.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Agent <Object>

The agent name(s), or object(s) to add to the agent group.



Required? true

Position? 1

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

The following AutoMate object types can be modified by this function:

AgentGroup





OUTPUTS

None





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



PS C:\\>Get-AMAgentGroup "All Agents" | Add-AMAgentGroupMember -Agent *













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-AMAgentGroup | Add-AMAgentGroupMember -Agent (Get-AMAgent "Agent1")















RELATED LINKS

https://github.com/AutomatePS/AutomatePS