< Back
Get-AMConnection
Post
NAME Get-AMConnection
SYNOPSIS
Gets current AutoMate Enterprise connections.
SYNTAX
Get-AMConnection [<CommonParameters>]
Get-AMConnection [-Connection <Object>] [<CommonParameters>]
DESCRIPTION
Get-AMConnection gets a list of current connections to AutoMate Enterprise.
PARAMETERS
-Connection <Object>
The connection name(s) or object(s).
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Connection, String
OUTPUTS
Connection
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$connection = Connect-AMServer "automate01"
Get-AMConnection -Connection $connection
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Connect-AMServer "automate01" -ConnectionAlias "prod"
Get-AMConnection -Connection "prod"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS
SYNOPSIS
Gets current AutoMate Enterprise connections.
SYNTAX
Get-AMConnection [<CommonParameters>]
Get-AMConnection [-Connection <Object>] [<CommonParameters>]
DESCRIPTION
Get-AMConnection gets a list of current connections to AutoMate Enterprise.
PARAMETERS
-Connection <Object>
The connection name(s) or object(s).
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Connection, String
OUTPUTS
Connection
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$connection = Connect-AMServer "automate01"
Get-AMConnection -Connection $connection
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Connect-AMServer "automate01" -ConnectionAlias "prod"
Get-AMConnection -Connection "prod"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS