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

Get-PSUDeployment

Returns deployment information from the PowerShell Universal server.

SYNOPSIS

Returns deployment information from the PowerShell Universal server.

SYNTAX

Name (Default)

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

Pinned

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

DESCRIPTION

Returns deployment information from the PowerShell Universal server.

EXAMPLES

Example 1

Returns deployment information with the name 'Production'.

Example 2

Returns the pinned deployment information. Returns $null if no deployment is pinned.

PARAMETERS

-AppToken

An application token to use for authentication.

-ComputerName

The URL of the server to connect to.

-Credential

The credentials to use to connect to the server.

-Integrated

For use when running within PowerShell Universal.

-Name

The name of the deployment to return.

-Pinned

Returns the pinned deployment information. Returns $null if no deployment is pinned.

-TrustCertificate

Trust the certificate when connecting to the server.

-UseDefaultCredentials

Use the default credentials for the current user.

-Version

The version of the deployment to return.

-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

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?