# Get-OfficeExcelDocumentProperty

Gets built-in, application and custom document properties.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument` `System.String[]`

**Source**

[GetOfficeExcelDocumentPropertyCommand.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelDocumentPropertyCommand.cs#L27) 

Gets built-in, application and custom document properties.

## Syntax

```
Get-OfficeExcelDocumentProperty
[-Document <ExcelDocument>]
[-Kind <BuiltIn|Application|Custom>]
[-Name <String[]>]
[<CommonParameters>]
```

[#](#method-get-officeexceldocumentproperty-exceldocument-exceldocumentpropertykind-string)

Parameter set: `Document`

```
Get-OfficeExcelDocumentProperty
[-Kind <BuiltIn|Application|Custom>]
[-Name <String[]>]
[-Path] <String[]>
[<CommonParameters>]
```

[#](#method-get-officeexceldocumentproperty-exceldocumentpropertykind-string-string)

Parameter set: `Path`

```
Get-OfficeExcelDocumentProperty
[-Kind <BuiltIn|Application|Custom>]
-LiteralPath <String[]>
[-Name <String[]>]
[<CommonParameters>]
```

[#](#method-get-officeexceldocumentproperty-exceldocumentpropertykind-string-string-2)

Parameter set: `LiteralPath`

## Examples

### Show document properties

```powershell
Get-OfficeExcelDocumentProperty -Path .\Reports\Q3-Sales.xlsx
```

Lists the built-in, application and custom properties of a workbook.

### Report owners of shared workbooks

```powershell
Get-ChildItem -Path \\files\Reports -Filter *.xlsx |
                Get-OfficeExcelDocumentProperty -Name Owner, Classification -Kind Custom |
                Format-Table
```

Reads the custom Owner and Classification properties of every workbook on the share.

## Parameters

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

Caller-owned workbook; omission uses the enclosing Excel content block.

**-Kind ExcelDocumentPropertyKind[] optional**

Metadata kind to add.

Possible values: `BuiltIn`, `Application`, `Custom`

**-Name String[] optional**

Property name filter (wildcards supported).

**-Path String[] requiredposition: 0pipeline: True (ByValue)aliases: FilePathsets: Path**

Workbook paths resolved with filesystem wildcard support.

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

Literal workbook paths, including FileInfo.FullName and provider PSPath.

## 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:5FEBE99A2A315BD405E9F70CCCEDB4DEFD25B21DA7DA2F683C995397F1A56A5B -->
