Skip to main content

Get-LXCAStoredCredential

This cmdlet retrieves information for stored credentials from the Lenovo XClarity Administrator server.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCAStoredCredential [-Connection LXCAConnection] 
[-Id String]
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-Id String
Specifies the ID of a specific stored credential. If not specified, information about all stored credentials is returned.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

Examples

The following example retrieves information for all stored credentials.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$accounts = Get-LXCAStoredCredential

Disconnect-LXCA
The following example retrieves information for a specific stored credential.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$accounts = Get-LXCAStoredCredential -Id $id

Disconnect-LXCA