For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-PSUJob

Returns jobs run within PSU.

SYNOPSIS

Returns jobs run within PSU.

SYNTAX

All (Default)

Get-PSUJob [-Status <JobStatus>] [-OrderBy <String>] [-OrderDirection <OrderDirection>]
 [-HideChildren <Boolean>] [-HideScheduled <Boolean>] [-HideTriggered <Boolean>] [-HideArchived <Boolean>]
 [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [-IncludeTotalCount]
 [-Skip <UInt64>] [-First <UInt64>] [<CommonParameters>]

Id

Get-PSUJob [-Id] <Int64> [-Status <JobStatus>] [-OrderBy <String>] [-OrderDirection <OrderDirection>]
 [-HideChildren <Boolean>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [-IncludeTotalCount] [-Skip <UInt64>] [-First <UInt64>] [<CommonParameters>]

RunId

Identity

Script

Schedule

DESCRIPTION

Returns jobs run within PSU.

EXAMPLES

Example 1

Returns all jobs run in PSU.

Example 2

Returns job 10 from PSU.

Example 3

Returns all jobs run for script with Id 4.

Example 4

Returns job 10 and any jobs (parent\child jobs) associated with it.

PARAMETERS

-AppToken

An app token to access the PSU API.

-ComputerName

The HTTP address of the PSU REST API server.

-First

Gets only the specified number of objects. Enter the number of objects to get.

-Id

The ID of the job to return.

-Identity

Returns jobs run by this identity.

-IncludeTotalCount

Reports the total number of objects in the data set (an integer) followed by the selected objects. If the cmdlet cannot determine the total count, it displays "Unknown total count." The integer has an Accuracy property that indicates the reliability of the total count value. The value of Accuracy ranges from 0.0 to 1.0 where 0.0 means that the cmdlet could not count the objects, 1.0 means that the count is exact, and a value between 0.0 and 1.0 indicates an increasingly reliable estimate.

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-OrderBy

Orders the output based on the property selected.

-OrderDirection

Orders ascending or descending.

-Script

Returns jobs based on this script.

-Skip

Ignores the specified number of objects and then gets the remaining objects. Enter the number of objects to skip.

-Status

Filters output based on this status.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-RunId

The run ID (GUID) for this job. Requires JobRunId experimental feature.

-Schedule

Specifies the schedule to target.

-Credential

Credentials to login to the PowerShell Universal Management API.

-HideChildren

Does not return child jobs.

-HideScheduled

Does not return scheduled jobs.

-HideTriggered

Does not return triggered job.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

-HideArchived

Excludes archived jobs from the results when set to $true.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

UniversalAutomation.Identity

UniversalAutomation.Script

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?