Cmdlet
New-OfficeWordComparisonOptions
Creates discoverable structural comparison settings for Compare-OfficeDocument.
Syntax
New-OfficeWordComparisonOptions
[-ExcludeScope <WordComparisonScope[]>]
[-IgnoreCase]
[-IgnoreWhitespace]
[-IncludeScope <WordComparisonScope[]>]
[-NoBlockOrder]
[-NoBookmarks]
[-NoCommentAuthors]
[-NoCommentReplies]
[-NoCommentResolvedState]
[-NoComments]
[-NoCommentTargets]
[-NoCommentText]
[-NoContentControls]
[-NoEffectiveFormatting]
[-NoFields]
[-NoGeneratedIds]
[-NoHyperlinks]
[-NoImages]
[-NoLists]
[-NoParagraphStyleIds]
[-NoRevisionAuthors]
[-NoRevisionLocations]
[-NoRevisions]
[-NoRevisionText]
[-NoRunFormatting]
[-NoRunStyleIds]
[-NoShapes]
[-NoVolatileMetadata]
[<CommonParameters>]#Parameter set:
DefaultExamples
Ignore text normalization differences and exclude volatile metadata.
$options = New-OfficeWordComparisonOptions -IgnoreWhitespace -IgnoreCase -NoVolatileMetadata:$false
Compare-OfficeDocument -ReferencePath .\Before.docx -DifferencePath .\After.docx -Options $optionsParameters
- -ExcludeScope WordComparisonScope[]
- Remove these comparison scopes from results.
- Possible values:
Paragraph,Run,Field,ContentControl,Bookmark,Hyperlink,List,Comment,Revision,Table,TableRow,TableCell,Image,Shape - -IgnoreCase SwitchParameter
- Ignore character casing.
- -IgnoreWhitespace SwitchParameter
- Ignore differences caused only by whitespace runs.
- -IncludeScope WordComparisonScope[]
- Limit results to these comparison scopes.
- Possible values:
Paragraph,Run,Field,ContentControl,Bookmark,Hyperlink,List,Comment,Revision,Table,TableRow,TableCell,Image,Shape - -NoBlockOrder SwitchParameter
- Compare document block order.
- -NoBookmarks SwitchParameter
- Compare bookmarks.
- Compare comment authors.
- -NoCommentReplies SwitchParameter
- Compare comment replies.
- -NoCommentResolvedState SwitchParameter
- Compare comment resolved state.
- -NoComments SwitchParameter
- Compare comments.
- -NoCommentTargets SwitchParameter
- Compare comment targets.
- -NoCommentText SwitchParameter
- Compare comment text.
- -NoContentControls SwitchParameter
- Compare content controls.
- -NoEffectiveFormatting SwitchParameter
- Compare resolved effective formatting.
- -NoFields SwitchParameter
- Compare fields.
- -NoGeneratedIds SwitchParameter
- Compare generated identifiers.
- -NoHyperlinks SwitchParameter
- Compare hyperlinks.
- -NoImages SwitchParameter
- Compare images.
- -NoLists SwitchParameter
- Compare lists.
- -NoParagraphStyleIds SwitchParameter
- Compare paragraph style identifiers.
- Compare revision authors.
- -NoRevisionLocations SwitchParameter
- Compare revision locations.
- -NoRevisions SwitchParameter
- Compare tracked revisions.
- -NoRevisionText SwitchParameter
- Compare revision text.
- -NoRunFormatting SwitchParameter
- Compare direct run formatting.
- -NoRunStyleIds SwitchParameter
- Compare run style identifiers.
- -NoShapes SwitchParameter
- Compare supported shapes.
- -NoVolatileMetadata SwitchParameter
- Compare volatile timestamps and metadata.
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.