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

Get-PSUJobOutput

Returns stream output for a job.

SYNOPSIS

Returns stream output for a job.

SYNTAX

ById

Get-PSUJobOutput -JobId <Int64> [-Limit <Int32>] [-AsObject] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

ByRunId

Get-PSUJobOutput -RunId <Guid> [-Limit <Int32>] [-AsObject] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

ByObject

Get-PSUJobOutput -Job <Job> [-Limit <Int32>] [-AsObject] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Returns stream output for a job. This includes error, warning, information, debug and verbose. Use Get-UAJobPipelineOutput to receive pipeline output.

EXAMPLES

Example 1

Returns output for job 10.

Example 2

Returns output for job 12.

PARAMETERS

-AppToken

An app token to access the PSU API.

-ComputerName

The HTTP address of the PSU REST API server.

-Integrated

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

-Job

The job to return output for.

-JobId

The ID of the job to return output for.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-RunId

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

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-AsObject

Returns the JobOutput object rather than a string.

-Limit

Limit the number of results returned.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

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.Job

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?