# Get-OfficePrinter

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

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Workflows.PdfPrinterInfo` `OfficeIMO.Workflows.PdfPaperSourceInfo`

**Source**

[GetOfficePrinterCommand.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePrinterCommand.cs#L17) 

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

## Syntax

```
Get-OfficePrinter
[[-Name] <String[]>]
[<CommonParameters>]
```

[#](#method-get-officeprinter-string)

Parameter set: `Printer`

```
Get-OfficePrinter
[-Name] <String[]>
-PaperSource
[<CommonParameters>]
```

[#](#method-get-officeprinter-string-switchparameter)

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.

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:9BAC54ADF0DB83578D6190214DA2A57418592546AD68A4396153B7EB2F09DD0D -->
