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

# New-PmpcRequirement

Builds an application's installation requirements.

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

## Synopsis

Builds an application's installation requirements.

## Syntax

{% code collapsedlinecount="10" %}

```powershell
New-PmpcRequirement [[-Architecture] <ApplicableArchitecture[]>]
  [-MinimumWindowsOSVersion <WindowsOSVersion>] [-MinimumNumberOfProcessors <Int32>]
  [-MinimumMemoryInMB <Int32>] [-MinimumCpuSpeedInMHz <Int32>] [-FileRule <FileRuleDto[]>]
  [-RegistryRule <RegistryRuleDto[]>] [-ScriptRule <ScriptRuleDto[]>] [<CommonParameters>]
```

{% endcode %}

## Description

Creates the requirements an application must satisfy before it installs, as accepted by New-PmpcCustomApplication and Update-PmpcCustomApplication.

The deployment-level equivalent is a different wire type with different property names and different null handling, so it has its own builder: New-PmpcDeploymentRequirement.

## Parameters

### -Architecture

Architectures the application may install on.

| Attribute       | Value                        |
| --------------- | ---------------------------- |
| Type            | `ApplicableArchitecture[]`   |
| Required        | False                        |
| Position        | 0                            |
| Pipeline input  | True (ByPropertyName)        |
| Aliases         | ApplicableArchitectures      |
| Accepted values | None, X86, X64, Arm, Neutral |

### -FileRule

File and folder rules that must pass.

| Attribute      | Value                 |
| -------------- | --------------------- |
| Type           | `FileRuleDto[]`       |
| Required       | False                 |
| Position       | Named                 |
| Pipeline input | True (ByPropertyName) |
| Aliases        | RequirementFileRules  |

### -MinimumCpuSpeedInMHz

Slowest CPU the application supports, in megahertz.

| Attribute      | Value                 |
| -------------- | --------------------- |
| Type           | `System.Int32`        |
| Required       | False                 |
| Position       | Named                 |
| Pipeline input | True (ByPropertyName) |
| Aliases        | None                  |

### -MinimumMemoryInMB

Least physical memory required, in megabytes.

| Attribute      | Value                 |
| -------------- | --------------------- |
| Type           | `System.Int32`        |
| Required       | False                 |
| Position       | Named                 |
| Pipeline input | True (ByPropertyName) |
| Aliases        | None                  |

### -MinimumNumberOfProcessors

Fewest logical processors required.

| Attribute      | Value                 |
| -------------- | --------------------- |
| Type           | `System.Int32`        |
| Required       | False                 |
| Position       | Named                 |
| Pipeline input | True (ByPropertyName) |
| Aliases        | None                  |

### -MinimumWindowsOSVersion

Oldest Windows version the application supports.

| Attribute       | Value                                                                                                                                                                                                                                                                                                      |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type            | `WindowsOSVersion`                                                                                                                                                                                                                                                                                         |
| Required        | False                                                                                                                                                                                                                                                                                                      |
| Position        | Named                                                                                                                                                                                                                                                                                                      |
| Pipeline input  | True (ByPropertyName)                                                                                                                                                                                                                                                                                      |
| Aliases         | None                                                                                                                                                                                                                                                                                                       |
| Accepted values | None, V8\_0, V8\_1, V10\_0, Windows10\_1607, Windows10\_1703, Windows10\_1709, Windows10\_1803, Windows10\_1809, Windows10\_1903, Windows10\_1909, Windows10\_2004, Windows10\_20H2, Windows10\_21H1, Windows10\_21H2, Windows10\_22H2, Windows11\_21H2, Windows11\_22H2, Windows11\_23H2, Windows11\_24H2 |

### -RegistryRule

Registry rules that must pass.

| Attribute      | Value                    |
| -------------- | ------------------------ |
| Type           | `RegistryRuleDto[]`      |
| Required       | False                    |
| Position       | Named                    |
| Pipeline input | True (ByPropertyName)    |
| Aliases        | RequirementRegistryRules |

### -ScriptRule

Script rules that must pass.

| Attribute      | Value                   |
| -------------- | ----------------------- |
| Type           | `ScriptRuleDto[]`       |
| Required       | False                   |
| Position       | Named                   |
| Pipeline input | True (ByPropertyName)   |
| Aliases        | RequirementsScriptRules |

### 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 by value.

## Outputs

### CustomRequirementsDto

The requirement set.

## Examples

### Example 1: Require 64-bit Windows 11 and 8 GB of memory

{% code collapsedlinecount="10" %}

```powershell
New-PmpcRequirement -Architecture X64 -MinimumWindowsOSVersion Windows11_22H2 -MinimumMemoryInMB 8192
```

{% endcode %}

The application installs only where all three hold.

### Example 2: Require a prerequisite to be present

{% code collapsedlinecount="10" %}

```powershell
$prereq = New-PmpcFileRule -Path 'C:\Program Files\Contoso' -FileOrFolderName 'runtime.dll' -OperationType Exists
New-PmpcRequirement -Architecture X64 -FileRule $prereq
```

{% endcode %}

Adds a file rule that must pass before the application installs.

## Notes

This cmdlet makes no network call and does not require a session.

## Related links

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

## See also

This cmdlet has no SDK method or REST operation of its own.

* [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/new-pmpcrequirement.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.
