< Back

New-AMAgent

Sat Jan 11, 2020 2:49 am

NAME New-AMAgent



SYNOPSIS

Creates a new AutoMate Enterprise agent.





SYNTAX

New-AMAgent [-Name] <String> [-Type {Unknown | TaskAgent | ProcessAgent | All}] [-Notes <String>] [-Folder

<Object>] [-Connection <Object>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

New-AMAgent creates a new agent object.





PARAMETERS

-Name <String>

The name of the new object.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Type

The type of agent to create: TaskAgent or ProcessAgent.



Required? false

Position? named

Default value TaskAgent

Accept pipeline input? false

Accept wildcard characters? false



-Notes <String>

The new notes to set on the object.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Folder <Object>

The folder to place the object in.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Connection <Object>

The server to create the object on.



Required? false

Position? named

Default value

Accept pipeline input? false

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



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



PS C:\\># Create new task agent



New-AMAgent -Name Task_Agent1 -Type TaskAgent









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



PS C:\\># Create new process agent



New-AMAgent -Name Proc_Agent1 -Type ProcessAgent











RELATED LINKS

https://github.com/AutomatePS/AutomatePS