< Back
Add-AMConstant
Post
NAME Add-AMConstant
SYNOPSIS
Adds constants to an AutoMate Enterprise agent property.
SYNTAX
Add-AMConstant -InputObject <Object> [-Name] <String> [-Value] <String> [-Comment <String>] [<CommonParameters>]
DESCRIPTION
Add-AMConstant adds constants to an agent property.
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 for the new constant.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <String>
The value for the new constant.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Comment <String>
The comment for the new 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 | Add-AMConstant -Name test -Value 123 -Comment "Test adding a
constant"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS
SYNOPSIS
Adds constants to an AutoMate Enterprise agent property.
SYNTAX
Add-AMConstant -InputObject <Object> [-Name] <String> [-Value] <String> [-Comment <String>] [<CommonParameters>]
DESCRIPTION
Add-AMConstant adds constants to an agent property.
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 for the new constant.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Value <String>
The value for the new constant.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Comment <String>
The comment for the new 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 | Add-AMConstant -Name test -Value 123 -Comment "Test adding a
constant"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS