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

Revoke-PSUAppToken

Revokes an app token.

SYNOPSIS

Revokes an app token.

SYNTAX

Revoke-PSUAppToken [-AppTokenToRevoke] <AppToken> [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Revokes an app token.

EXAMPLES

Example 1

PS C:\> $AppToken = Get-UAAppToken -Id 1
PS C:\> Revoke-UAAppToken -AppTokenToRevoke $AppToken

Revokes app token 1.

PARAMETERS

-AppToken

An app token to access the PSU API.

-AppTokenToRevoke

The app token to revoke.

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

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

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?