Get-ConnectionInformation

此 Cmdlet 可在 Exchange Online PowerShell 模組 v3.0.0 或更新版本中取得。 如需詳細資訊,請參閱關於 Exchange Online PowerShell 模組

使用 Get-ConnectionInformation Cmdlet 取得目前 PowerShell 實例中所有 REST 型連線的相關資訊,Exchange Online。

如需下方<語法>一節中參數集的詳細資訊,請參閱 Exchange Cmdlet 語法

Syntax

Get-ConnectionInformation []
Get-ConnectionInformation
   -ConnectionId <String[]>
   [<CommonParameters>]
Get-ConnectionInformation
   -ModulePrefix <String[]>
   [<CommonParameters>]

Description

Get-ConnectionInformation Cmdlet 會傳回與目前 PowerShell 實例中Exchange Online的所有作用中 REST 型連線相關資訊。 此 Cmdlet 相當於與遠端 PowerShell 會話搭配使用的Get-PSSession Cmdlet。

範例

範例 1

Get-ConnectionInformation

此範例會傳回目前 PowerShell 實例中所有使用中 REST 型連線Exchange Online的清單。

範例 2

Get-ConnectionInformation -ConnectionId 1a9e45e8-e7ec-498f-9ac3-0504e987fa85

此範例會傳回具有指定 ConnectionId 值的作用中 REST 型連線。

範例 3

Get-ConnectionInformation -ModulePrefix Contoso,Fabrikam

此範例會傳回使用指定前置詞值的使用中 REST 型連線清單。

參數

-ConnectionId

注意:此參數可在模組的 3.2.0 版或更新版本中使用。

ConnectionId 參數會依 ConnectionId 篩選連線。 ConnectionId 是 Get-ConnectionInformation Cmdlet 輸出中的 GUID 值,可唯一識別連接,即使您已開啟多個連線也一般。 您可以指定多個以逗號分隔的 ConnectionId 值。

請勿將此參數與 ModulePrefix 參數搭配使用。

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ModulePrefix

注意:此參數可在模組的 3.2.0 版或更新版本中使用。

ModulePrefix 參數會依 ModulePrefix 篩選連線。 當您使用 Prefix 參數搭配 Connect-ExchangeOnline Cmdlet 時,指定的文字會新增至所有Exchange Online Cmdlet 的名稱 (例如,Get-InboundConnector會變成 Get-ContosoInboundConnector) 。 ModulePrefix 值會顯示在 Get-ConnectionInformation Cmdlet 的輸出中。 您可以指定多個以逗號分隔的 ModulePrefix 值。

此參數僅對使用 Prefix 參數建立的連接才有意義。

請勿將此參數與 ConnectionId 參數搭配使用。

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False