< Back

Set-AMObject

Sat Jan 11, 2020 3:30 am

NAME Set-AMObject



SYNOPSIS

Modifies an AutoMate Enterprise object.





SYNTAX

Set-AMObject [-InputObject] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Set-AMObject receives modified AutoMate Enterprise object(s) on the pipeline, or via the parameter $InputObject,

and applies the modifications.





PARAMETERS

-InputObject <Object>

The object(s) to be modified.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

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

The following objects can be modified by this function:

Workflow

Task

Process

TaskAgent

ProcessAgent

AgentGroup

User

UserGroup





OUTPUTS



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



PS C:\\>$obj = Get-AMWorkflow "My Workflow"



$obj.Notes = "New Notes"

$obj | Set-AMObject











RELATED LINKS

https://github.com/AutomatePS/AutomatePS