Use this cmdlet to list the currently cached credentials that can be used by Priasoft tools.
PowerShell
Show-CachedCredentials
This cmdlet does not provide any parameters.
Description
The Show-CachedCredentials cmdlet is used to list the currently cached credentials that can be used by Priasoft tools, including Super-ExMerge. See the New-FormattedCredential cmdlet for details about how cached credentials are used.
Note: Cached credentials are stored in two places on a host: for the currently logged in user and separately for the SuperExMerge service. This cmdlet will show credentials from both storage locations and requires the SuperExMege service to be running.
Cached credentials are stored in a file named ‘credential.cache’. The full path to the file is %appdata%\credential.cache. This file is encrypted, and can be copied to another host or user context if the credentials need to be reused.
Examples
Example 1
PowerShell
Show-CachedCredentials
This example will list the currently cached credentials.
Output
This cmdlet will place a PSObject object on the current pipeline, once for each cached credential. Standard PowerShell pipeline commands like Sort-Object, Select-Object, Format-Table, Format-List, etc. can be used to control the output of data.
Each credential object returned will have the following properties:
- CredentialStore: The location of the cached credential. Values will be either ‘SuperExMerge Service‘ or ‘CurrentUser‘
- CredName: The server or credential name that identifies the credential.
- UserName: The username of the credential.
- HasPassword: A boolean value indicating if the credential was cached with or without a password.
