Skip to main content

Get-LXCAConnection

This cmdlet retrieves all available PowerShell connections with the Lenovo XClarity Administrator server that can be used by other cmdlets. Use Disconnect-LXCA to disconnect from the XClarity Administrator server.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCAConnection [CommonParameter]

Parameters

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

This cmdlet returns one or more LXCAConnection class objects.

Examples

The following example retrieves a list of all available PowerShell sessions and then disconnects them from the XClarity Administrator server.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$connections = Get-LXCAConnection
foreach ($conn in $connections)
{
Disconnect-LXCA -Connection $conn
}