Cmdlet
Get-OfficeWordDocumentProperty
Gets built-in and custom document properties.
Syntax
Get-OfficeWordDocumentProperty
[-BuiltIn]
[-Custom]
[-Document <WordDocument>]
[-Name <String[]>]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeWordDocumentProperty
[-BuiltIn]
[-Custom]
[-Name <String[]>]
[-Path] <String[]>
[<CommonParameters>]#Parameter set:
PathGet-OfficeWordDocumentProperty
[-BuiltIn]
[-Custom]
-LiteralPath <String[]>
[-Name <String[]>]
[<CommonParameters>]#Parameter set:
LiteralPathExamples
Example 1
Get-OfficeWordDocumentProperty -Name @('Name')Example 2
Get-OfficeWordDocumentProperty -LiteralPath @('C:\Path')Example 3
Get-OfficeWordDocumentProperty -Path @('C:\Path')Parameters
- -BuiltIn SwitchParameter
- BuiltIn for this inspection.
- -Custom SwitchParameter
- Custom for this inspection.
- -Document WordDocument
- Document for this inspection.
- -Name String[]
- Name for this inspection.
- -Path String[]
- Path for this inspection.
- -LiteralPath String[]
- LiteralPath for this inspection.
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.
Outputs
PSWriteOffice.Models.Word.WordDocumentPropertyInfo: Represents a Word document property exposed to PowerShell.