Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ Class CCM_Application : CCM_SoftwareBase

- [GetProperty Method in Class CCM_Application](../../../../../develop/reference/core/clients/sdk/getproperty-method-in-class-ccm_application.md)

- [Install Method in Class CCM_Application](../../../../../develop/reference/core/clients/sdk/install-method-in-class-ccm_application.md)
- [Install Method in Class CCM_Application](../../../../../develop/reference/core/clients/sdk/install-method-in-class-ccm_application.md)

- [Repair Method in Class CCM_Application](../../../../../develop/reference/core/clients/sdk/repair-method-in-class-ccm_application.md)

- [Uninstall Method in Class CCM_Application](../../../../../develop/reference/core/clients/sdk/uninstall-method-in-class-ccm_application.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
description: Learn how to repair an application using the Repair Windows Management Instrumentation (WMI) class method.
title: Repair Method
titleSuffix: Configuration Manager
ms.date: 07/31/2023
ms.prod: configuration-manager
ms.technology: configmgr-sdk
ms.topic: reference
ms.assetid: 24654af4-e004-417f-8874-d0e77279822b
author: Banreet
ms.author: banreetkaur
manager: apoorvseth
ms.localizationpriority: low
ms.collection: tier3
ms.reviewer: mstewart,aaroncz
---
# Repair Method in Class CCM_Application
The `Repair` Windows Management Instrumentation (WMI) class method, in Configuration Manager, that repairs an application.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

## Syntax

```
uint32 Repair
{
[IN] String Id
[IN] String Revision
[IN] Boolean IsMachineTarget
[IN] UInt32 EnforcePreference
[IN] String Priority
[IN] Boolean IsRebootIfNeeded
[OUT] String JobId
};
```

## Parameters
`Id`
Data type: `String`

Qualifiers: [id("0"), in]

Application identifier.

`Revision`
Data type: `String`

Qualifiers: [id("1"), in]

Revision.

`IsMachineTarget`
Data type: `Boolean`

Qualifiers: [id("2"), in]

`true` if the application targets a machine.

`EnforcePreference`
Data type: `UInt32`

Qualifiers: [id("3"), in, values]

Enforce preference. Possible values are:

|Value|Enforce preference|
|-|-|
|0|Immediate|
|1|NonBusinessHours|
|2|AdminSchedule|

`Priority`
Data type: `String`

Qualifiers: [id("4"), in, valuemap]

Priority. Possible values are:

|Value|
|-|
|Foreground|
|High|
|Normal|
|Low|

`IsRebootIfNeeded`
Data type: `Boolean`

Qualifiers: [id("5"), in]

`true` if a reboot is needed.

`JobId`
Data type: `String`

Qualifiers: [id("6"), out]

Job identifier.

## Remarks

## Requirements

## Runtime Requirements
For more information, see [Configuration Manager Server Runtime Requirements](../../../../../develop/core/reqs/server-runtime-requirements.md).

## Development Requirements
For more information, see [Configuration Manager Server Development Requirements](../../../../../develop/core/reqs/server-development-requirements.md).