API Reference
Cmdlet
Get-OfficePrinter
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
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 SetsParameters
- PaperSources String
- Named printer whose paper sources should be listed.
Outputs
OfficeIMO.Workflows.PdfPrinterInfo, OfficeIMO.Workflows.PdfPaperSourceInfo