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

Get-PSUScript

Returns scripts defined within PSU.

SYNOPSIS

Returns scripts defined within PSU.

SYNTAX

All (Default)

Get-PSUScript [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

Id

Get-PSUScript [-Id] <Int64> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

Identity

Get-PSUScript [-Identity] <Identity> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

Folder

Name

ByTagObject

DESCRIPTION

Returns scripts defined within PSU.

EXAMPLES

Example 1

Returns all scripts defined within PSU.

Example 2

Returns the script with ID 12.

Example 3

Returns all scripts created or modified by the identity 'Adam'.

Example 4

Returns all scripts with the folder with ID 12.

Example 4

Returns script 'Script1.ps1'

Example 5

Returns all scripts with the 'Release' tag.

PARAMETERS

-AppToken

An app token to access the PSU API.

-ComputerName

The HTTP address of the PSU REST API server.

-Folder

Specifies the folder to target.

-Id

The ID of the script to return.

-Identity

Returns scripts based created or edited by this Identity.

-Integrated

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

-Name

The name of the script to return.

-Tag

Returns scripts based on this tag. Use Get-UATag to retrieve tags.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

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

System.Int64

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?