# Get-OfficeConfluenceAttachment

Lists or downloads Confluence page attachments. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Confluence.ConfluenceAttachment` `OfficeIMO.Confluence.ConfluenceAttachmentBatch` `System.Byte[]` `System.IO.FileInfo`

**Source**

[GetOfficeConfluenceAttachmentCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Confluence/GetOfficeConfluenceAttachmentCommand.cs#L20) 

Lists or downloads Confluence page attachments.

## Syntax

```
Get-OfficeConfluenceAttachment
[-AsPage]
[-Cursor <String>]
[-Limit <Int32>]
-PageId <String>
-Session <ConfluenceSession>
[<CommonParameters>]
```

[#](#method-get-officeconfluenceattachment-switchparameter-string-int32-string-confluencesession)

Parameter set: `List`

```
Get-OfficeConfluenceAttachment
-AttachmentId <String>
[-Force]
[-OutFile <String>]
-PageId <String>
-Session <ConfluenceSession>
[<CommonParameters>]
```

[#](#method-get-officeconfluenceattachment-string-switchparameter-string-string-confluencesession)

Parameter set: `Download`

## Examples

### List all attachments for a page.

```powershell
Get-OfficeConfluenceAttachment -Session $session -PageId 12345
```

Follows attachment cursors and streams attachment metadata.

## Parameters

**-AsPage SwitchParameter optionalsets: List**

Return attachment batches rather than individual metadata objects.

**-Cursor String optionalsets: List**

Optional cursor at which to resume attachment listing.

**-Limit Int32 optionalsets: List**

Maximum attachments requested per listing batch.

**-PageId String required**

Page identifier.

**-Session ConfluenceSession required**

Configured Confluence session.

**-AttachmentId String requiredsets: Download**

Attachment identifier to download.

**-Force SwitchParameter optionalsets: Download**

Overwrite an existing destination file.

**-OutFile String optionalsets: Download**

Optional destination path. Without this parameter, the download is returned as one byte array.

## 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).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:60B87D64EA5C663D74F00F822BD9A2D57B3F858ED40955E5E4F18FD55E8E9820 -->
