< Back

Wait-AMInstance

Sat Jan 11, 2020 3:44 am

NAME Wait-AMInstance



SYNOPSIS

Waits for AutoMate Enterprise workflow and task instances to complete.





SYNTAX

Wait-AMInstance [-Timeout <Object>] [<CommonParameters>]



Wait-AMInstance [-InputObject <Object>] [-Timeout <Object>] [<CommonParameters>]





DESCRIPTION

Wait-AMInstance waits for running workflow and task instances to complete.





PARAMETERS

-InputObject <Object>

The instances to wait for.



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Timeout <Object>

Seconds to wait for the instance to complete before timing out.



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

Instances can be supplied on the pipeline to this function.





OUTPUTS

System.Object[]





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



PS C:\\># Suspend all currently running instances



Get-AMInstance -Status Running | Wait-AMInstance











RELATED LINKS

https://github.com/AutomatePS/AutomatePS