> For the complete documentation index, see [llms.txt](https://docs.patchmypc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcconnection.md). Agents can also search and read this documentation through its [MCP server](https://docs.patchmypc.com/~gitbook/mcp).

# Get-PmpcConnection

Lists the Intune connections available to the selected company.

[Back to the Cloud Customer API overview](https://docs.patchmypc.com/patch-my-pc-cloud-api)

## Synopsis

Lists the Intune connections available to the selected company.

## Syntax

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcConnection [[-Name] <String>] [-ConnectionId <Guid>] [<CommonParameters>]
```

{% endcode %}

## Description

Returns the Intune connections configured for the selected company; Publisher and ConfigMgr connections are not returned. Deployment commands are scoped to one of these, chosen with Set-PmpcConnection, and public-catalog lookups use one to scope the request.

## Parameters

### -ConnectionId

ID of an Intune connection, as returned by Get-PmpcConnection.

| Attribute      | Value         |
| -------------- | ------------- |
| Type           | `System.Guid` |
| Required       | False         |
| Position       | Named         |
| Pipeline input | False         |
| Aliases        | None          |

### -Name

Return only connections whose display name matches. Wildcards are accepted.

| Attribute      | Value           |
| -------------- | --------------- |
| Type           | `System.String` |
| Required       | False           |
| Position       | 0               |
| Pipeline input | False           |
| Aliases        | None            |

### 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](https://go.microsoft.com/fwlink/?LinkID=113216).

## Inputs

### None

This cmdlet does not accept pipeline input.

## Outputs

### ConnectionDto

One object per available connection.

## Examples

### Example 1: List connections

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcConnection
```

{% endcode %}

Shows the display name, ID, type and admin-consent state of each connection.

### Example 2: Find Intune connections

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcConnection | Where-Object Type -eq 'Intune'
```

{% endcode %}

The API currently returns only Intune connections, so this filter makes the intended type explicit.

## Notes

Requires a selected company. Check the AdminConsent property: a connection without admin consent will fail deployment operations.

## Related links

* [Set-PmpcConnection](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/set-pmpcconnection.md)
* [Get-PmpcSelectedConnection](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcselectedconnection.md)
* [PowerShell module](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell.md)

## See also

* SDK method: [GetAvailableConnectionsAsync](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/customer-and-connections.md#getavailableconnectionsasync)
* REST operation: [`GET /v1/api/connections`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-available-connections)
* [Cross-reference: cmdlets, SDK methods, and REST operations](https://docs.patchmypc.com/patch-my-pc-cloud-api/cross-reference.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcconnection.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
