> 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-pmpcdeploymenttemplate.md). Agents can also search and read this documentation through its [MCP server](https://docs.patchmypc.com/~gitbook/mcp).

# Get-PmpcDeploymentTemplate

Lists deployment templates, or reads one in detail.

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

## Synopsis

Lists deployment templates, or reads one in detail.

## Syntax

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeploymentTemplate [-DeploymentTemplateId] <String> [<CommonParameters>]
```

{% endcode %}

## Description

Retrieves the deployment templates configured for the selected connection, or the settings of a single template.

A template is a stored set of deployment settings. Applying one is client-side: pass the result to New-PmpcDeployment -Template, which pre-fills the request the same way the portal pre-fills its create form. No create operation accepts a template id server-side, so there is nothing to apply remotely.

Author templates with New-PmpcDeploymentTemplate, change them with Set-PmpcDeploymentTemplate.

Requirements come back in the same shape a deployment's own detail returns, so New-PmpcDeploymentRequirement produces requirements for either.

## Parameters

### -DeploymentTemplateId

The template to read. Omit it to list every template on the selected connection.

| Attribute      | Value                          |
| -------------- | ------------------------------ |
| Type           | `System.String`                |
| Required       | True                           |
| Position       | 0                              |
| Pipeline input | True (ByValue, ByPropertyName) |
| 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

### System.String

A deployment template id, by value or by property name.

## Outputs

### DeploymentTemplateSummaryDto

One entry per template when listing.

### DeploymentTemplateDto

The template settings when an id is supplied.

## Examples

### Example 1: List the templates on the selected connection

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeploymentTemplate
```

{% endcode %}

Returns every template, including which one is the connection default.

### Example 2: Find the default template

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeploymentTemplate | Where-Object IsDefault
```

{% endcode %}

The default is what a deployment created without a template inherits.

### Example 3: Read one template in detail

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeploymentTemplate -DeploymentTemplateId $templateId
```

{% endcode %}

Returns the settings a deployment created from this template would inherit.

## Notes

Requires a selected company and connection. Custom install scripts, PSADT version, ring configuration and CreateWithDelay are not returned: they have no counterpart on the deployment surface this module exposes.

## Related links

* [New-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeployment.md)
* [New-PmpcDeploymentRequirement](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeploymentrequirement.md)
* [PowerShell module](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell.md)

## See also

* SDK method: [GetDeploymentTemplatesAsync](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/deployment-templates.md#getdeploymenttemplatesasync)
* SDK method: [GetDeploymentTemplateAsync](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/deployment-templates.md#getdeploymenttemplateasync)
* REST operation: [`GET /v1/api/deployments/templates`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-deployment-templates)
* REST operation: [`GET /v1/api/deployments/templates/{deploymentTemplateId}`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-deployment-template-details)
* [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-pmpcdeploymenttemplate.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.
