Project

PSWriteOffice

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

Stars 654
Forks 82
Open issues 1
Total downloads 4,320,051
Release OfficeIMO-v3.5.3
Language: C# Updated: 2026-11-03
Cmdlet

Get-OfficeConfluenceAttachment

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Confluence.ConfluenceAttachment OfficeIMO.Confluence.ConfluenceAttachmentBatch System.Byte[] System.IO.FileInfo

Lists or downloads Confluence page attachments.

Syntax

Get-OfficeConfluenceAttachment
[-AsPage]
[-Cursor <String>]
[-Limit <Int32>]
-PageId <String>
-Session <ConfluenceSession>
[<CommonParameters>]
#
Parameter set: List
Get-OfficeConfluenceAttachment
-AttachmentId <String>
[-Force]
[-OutFile <String>]
-PageId <String>
-Session <ConfluenceSession>
[<CommonParameters>]
#
Parameter set: Download

Examples

List all attachments for a page.

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.