Cmdlet
Resolve-OfficeWordRevision
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>]#Parameter set:
DocumentResolve-OfficeWordRevision
-Action <Accept| Reject>
[-Filter <WordRevisionFilter>]
-OutputPath <String>
[-Path] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
PathResolve-OfficeWordRevision
-Action <Accept| Reject>
[-Filter <WordRevisionFilter>]
-LiteralPath <String>
-OutputPath <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Accept revisions by one author into a new document.
$filter = New-OfficeWordRevisionFilter -Author 'Reviewer' -InContentControl
Resolve-OfficeWordRevision -Path .\Draft.docx -OutputPath .\Accepted.docx -Action Accept -Filter $filterApplies only matching revisions, saves the result, and returns the matched revision report.
Parameters
- -Action WordRevisionOperationKind
- Accept or reject matching revisions.
- Possible values:
Accept,Reject - -Document WordDocument
- Open Word document instance.
- -Filter WordRevisionFilter
- Optional author, id, type, date, location, part, or container filter.
- -PassThru SwitchParameter
- Return the mutated document after the operation.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
- -OutputPath String
- Output document path. Required for path input.
- -Path String
- Path to the Word document.
- -LiteralPath String
- 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.