< Back

Set-AMConstant

Sat Jan 11, 2020 3:24 am

NAME Set-AMConstant



SYNOPSIS

Sets constants on an AutoMate Enterprise agent property.





SYNTAX

Set-AMConstant -InputObject <Object> [-Name] <String> [-Value] <String> [-Comment <String>] [<CommonParameters>]





DESCRIPTION

Set-AMConstant sets constants for an agent.





PARAMETERS

-InputObject <Object>

The agent property to modify.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

The name of the constant to modify.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Value <String>

The value to set for the constant.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Comment <String>

The comment to set for the constant.



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

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

AgentProperty





OUTPUTS

None





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



PS C:\\>Get-AMAgent "agent01" | Get-AMObjectProperty | Set-AMConstant -Name test -Value 123 -Comment "Test

modifying a constant"















RELATED LINKS

https://github.com/AutomatePS/AutomatePS