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
Lenovo.SysMgmt.LXCA.Integration.Data.StoredCredentialData
If -Id is specified, this cmdlet returns a single StoredCredentialData object, for the stored credential with specified ID.
Lenovo.SysMgmt.LXCA.Integration.Data.StoredCredentialData[]
If -Id is not specified, this cmdlet returns an array of StoredCredentialData objects, for all stored credentials existing in XClarity Administrator.
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
Give documentation feedback