Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 165
Forks 15
PowerShell Gallery downloads 158,661
Release v3.0.8
Language: C# Updated: 2026-10-12

API Reference

Cmdlet

Get-OfficePrinter

Namespace PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Workflows.PdfPrinterInfo OfficeIMO.Workflows.PdfPaperSourceInfo

Lists system printer queues, or the paper sources of a named queue. Requires PowerShell 7.4 or newer.

Remarks

Lists system printer queues, or the paper sources of a named queue. Requires PowerShell 7.4 or newer.

Examples

Authored help example

Discover queues and trays.

PS>


Get-OfficePrinter
            Get-OfficePrinter -PaperSources 'Office printer'
        

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.

Syntax

Get-OfficePrinter [-PaperSources <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

PaperSources String optionalposition: namedpipeline: False
Named printer whose paper sources should be listed.

Outputs

OfficeIMO.Workflows.PdfPrinterInfo, OfficeIMO.Workflows.PdfPaperSourceInfo