< Back

Get-AMCondition

Sat Jan 11, 2020 2:36 am

NAME Get-AMCondition



SYNOPSIS

Gets AutoMate Enterprise conditions.





SYNTAX

Get-AMCondition [[-Name] <String>] [-FilterSet <Hashtable[]>] [-FilterSetMode <String>] [-Type {Undefined | Logon

| Window | Schedule | Keyboard | Idle | Performance | EventLog | FileSystem | Process | Service | SNMPTrap | WMI |

Time | Database | SharePoint | Email | All}] [-SortProperty <String[]>] [-SortDescending] [-Connection <Object>]

[<CommonParameters>]



Get-AMCondition [-InputObject <Object>] [[-Name] <String>] [-FilterSet <Hashtable[]>] [-FilterSetMode <String>]

[-Type {Undefined | Logon | Window | Schedule | Keyboard | Idle | Performance | EventLog | FileSystem | Process |

Service | SNMPTrap | WMI | Time | Database | SharePoint | Email | All}] [-SortProperty <String[]>]

[-SortDescending] [-Connection <Object>] [<CommonParameters>]



Get-AMCondition [[-Name] <String>] [-ID <String>] [-FilterSet <Hashtable[]>] [-FilterSetMode <String>] [-Type

{Undefined | Logon | Window | Schedule | Keyboard | Idle | Performance | EventLog | FileSystem | Process | Service

| SNMPTrap | WMI | Time | Database | SharePoint | Email | All}] [-SortProperty <String[]>] [-SortDescending]

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





DESCRIPTION

Get-AMCondition gets condition objects from AutoMate Enterprise. Get-AMCondition can receive items on the

pipeline and return related objects.





PARAMETERS

-InputObject <Object>

The object(s) use in search for conditions.



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

The name of the condition (case sensitive). Wildcard characters can be escaped using the ` character. If

using escaped wildcards, the string

must be wrapped in single quotes. For example: Get-AMCondition -Name '`[Test`]'



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ID <String>

The ID of the condition.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FilterSet <Hashtable[]>

The parameters to filter the search on. Supply hashtable(s) with the following properties: Property,

Operator, Value.

Valid values for the Operator are: =, !=, <, >, contains (default - no need to supply Operator when using

'contains')



Required? false

Position? named

Default value @()

Accept pipeline input? false

Accept wildcard characters? false



-FilterSetMode <String>

If multiple filter sets are provided, FilterSetMode determines if the filter sets should be evaluated with an

AND or an OR



Required? false

Position? named

Default value And

Accept pipeline input? false

Accept wildcard characters? false



-Type

The condition type:

All

Logon

Window

Schedule

Keyboard

Idle

Performance

EventLog

FileSystem

Process

Service

SNMPTrap

WMI

Database

SharePoint



Required? false

Position? named

Default value All

Accept pipeline input? false

Accept wildcard characters? false



-SortProperty <String[]>

The object property to sort results on. Do not use ConnectionAlias, since it is a custom property added by

this module, and not exposed in the API.



Required? false

Position? named

Default value Name

Accept pipeline input? false

Accept wildcard characters? false



-SortDescending [<SwitchParameter>]

If specified, this will sort the output on the specified SortProperty in descending order. Otherwise,

ascending order is assumed.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Connection <Object>

The AutoMate Enterprise management server.



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

Conditions related to the following objects can be retrieved by this function:

Workflow

Agent

Folder





OUTPUTS

Condition





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



PS C:\\>Get-AMCondition "My Condition"



Get-AMWorkflow "My Workflow" | Get-AMCondition









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



PS C:\\># Get conditions that have "Daily" in the name and are not enabled, using filter sets



Get-AMCondition -FilterSet @{ Property = "Name"; Operator = "contains"; Value = "Daily"},@{ Property = "Enabled";

Operator = "="; Value = "false"}











RELATED LINKS

https://github.com/AutomatePS/AutomatePS