Cmdlet
Get-OfficeWordDocumentProperty
Gets built-in and custom document properties from a Word document.
Syntax
Examples
Read release metadata from a document.
$properties = Get-OfficeWordDocumentProperty -Path .\Report.docx -Name Title, Subject, ReleaseStatus
$properties |
Select-Object -Property Name, Value, IsCustom |
Format-Table -AutoSizeReturns selected built-in and custom properties for a document metadata check.
Parameters
- -BuiltIn SwitchParameter
- Only return built-in document properties.
- -Custom SwitchParameter
- Only return custom document properties.
- -Name String[]
- Property name filter (wildcards supported).
- -Path String
- Path to the document.
- -Document WordDocument
- Document to inspect.
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.