Get-PSUAppToken
SYNOPSIS
Returns app tokens.
SYNTAX
All (Default)
Get-PSUAppToken [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Id
Get-PSUAppToken [-Id] <Int64> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Identity
Get-PSUAppToken [-Identity] <Identity> [-ComputerName <String>] [-AppToken <String>]
[-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]DESCRIPTION
Retrieves app tokens from PowerShell Universal. You can return all tokens, a token by Id, or the tokens associated with a specific identity.
EXAMPLES
Example 1
Returns all app tokens.
PARAMETERS
-AppToken
The app token to return.
-ComputerName
Specifies the URL or host name of the target PowerShell Universal instance. Bare host names are normalized to an http://<host>:5000 URL.
-Id
Specifies the numeric Id of the resource.
-Identity
The identity of the user to return app tokens for.
-UseDefaultCredentials
Use default credentials when connecting to the management API
-Integrated
Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.
-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
OUTPUTS
System.Object
NOTES
RELATED LINKS
PERMISSIONS
The access token requires security.tokens/read to run this cmdlet remotely.
Last updated
Was this helpful?