# Resolve-OfficeWordRevision

Accepts or rejects filtered Word revisions and returns an operation report.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Word.WordDocument` `System.String`

**Outputs**

`OfficeIMO.Word.WordRevisionOperationReport`

**Source**

[ResolveOfficeWordRevisionCommand.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Word/ResolveOfficeWordRevisionCommand.cs#L18) 

Accepts or rejects filtered Word revisions and returns an operation report.

## Syntax

```
Resolve-OfficeWordRevision
-Action <Accept|Reject>
[-Document <WordDocument>]
[-Filter <WordRevisionFilter>]
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-resolve-officewordrevision-wordrevisionoperationkind-worddocument-wordrevisionfilter-switchparameter-switchparameter-switchparameter)

Parameter set: `Document`

```
Resolve-OfficeWordRevision
-Action <Accept|Reject>
[-Filter <WordRevisionFilter>]
-OutputPath <String>
[-Path] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-resolve-officewordrevision-wordrevisionoperationkind-wordrevisionfilter-string-string-switchparameter-switchparameter)

Parameter set: `Path`

```
Resolve-OfficeWordRevision
-Action <Accept|Reject>
[-Filter <WordRevisionFilter>]
-LiteralPath <String>
-OutputPath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-resolve-officewordrevision-wordrevisionoperationkind-wordrevisionfilter-string-string-switchparameter-switchparameter-2)

Parameter set: `LiteralPath`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Review, Protect, and Deliver Word Documents](/docs/pswriteoffice/word-review-delivery/) Guide
  
  Inspect revisions, compare Word documents, resolve approved changes, protect output, update fields, and prepare DOCX files for delivery.
- [Automate Word Documents](/docs/pswriteoffice/word/) Guide
  
  Create, inspect, update, review, merge, protect, and convert DOCX workflows from PowerShell. Includes examples and cmdlet links.
- [Track Changes and Compare Word Documents](/docs/word/review/) Guide
  
  Add and read comments and tracked changes, accept or reject revisions by author or type, compare two DOCX versions, and create a redline document.

## Examples

### Accept revisions by one author into a new document.

```powershell
$filter = New-OfficeWordRevisionFilter -Author 'Reviewer' -InContentControl
Resolve-OfficeWordRevision -Path .\Draft.docx -OutputPath .\Accepted.docx -Action Accept -Filter $filter
```

Applies only matching revisions, saves the result, and returns the matched revision report.

## Parameters

**-Action WordRevisionOperationKind required**

Accept or reject matching revisions.

Possible values: `Accept`, `Reject`

**-Document WordDocument optionalpipeline: True (ByValue)sets: Document**

Open Word document instance.

**-Filter WordRevisionFilter optional**

Optional author, id, type, date, location, part, or container filter.

**-PassThru SwitchParameter optionalsets: Document**

Return the mutated document after the operation.

**-WhatIf SwitchParameter optional**

Shows what would happen if the command runs.

**-Confirm SwitchParameter optional**

Prompts for confirmation before running the command.

**-OutputPath String requiredsets: Path, LiteralPath**

Output document path. Required for path input.

**-Path String requiredposition: 0sets: Path**

Path to the Word document.

**-LiteralPath String requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

Literal Word input file.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:A54BD566272EF98293796ACAA70515E5039B110EF6EABE1FEFBE774A56E9EFF5 -->
