Table of Contents

Get-AdtConnection

Synopsis

Gets the open connections to adTempus servers.

Syntax

Default

Get-AdtConnection [-Default]

Description

Gets the connections opened in the current session by Connect-AdtServer, or opened automatically by other cmdlets through the -Server parameter or the connection to the local server. The IsDefault property shows which connection cmdlets use when no connection is specified.

Examples

Example 1

Get-AdtConnection

Lists the open connections.

Example 2

$connection = Get-AdtConnection -Default
Get-AdtJob -Connection $connection

Gets the default connection and uses it explicitly.

Parameters

-Default

Gets only the default connection.

TypeSwitchParameter
RequiredFalse
PositionNamed
Default valueFalse
Accept pipeline inputFalse
Accept wildcard charactersFalse

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

You cannot pipe objects to this cmdlet.

Outputs

ArcanaDevelopment.adTempus.PowerShell.AdtConnection

A connection to an adTempus server, from Connect-AdtServer or Get-AdtConnection.

Notes

Connections stay open for the rest of the PowerShell session, or until they are closed with Disconnect-AdtServer. Objects fetched through a connection can be used only while it is open.