Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePrinter

Module
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.

Syntax

Get-OfficePrinter
[[-Name] <String[]>]
[<CommonParameters>]
#
Parameter set: Printer
Get-OfficePrinter
[-Name] <String[]>
-PaperSource
[<CommonParameters>]
#
Parameter set: PaperSource

Description

Use Get-OfficePrinterCapability for media, duplex, color and resolution details of a queue or IPP printer.

Examples

Discover queues and trays.

Get-OfficePrinter
Get-OfficePrinter -Name 'Office printer' -PaperSource

Parameters

-Name String[] required in PaperSourceposition: 0
Printer name patterns; PaperSource requires one exact printer name or IPP printer URI.
-PaperSource SwitchParameter requiredsets: PaperSource
List paper sources of the single printer selected by Name.

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.