Cmdlet
Get-OfficePrinter
Lists system printer queues, or the paper sources of a named queue. Requires PowerShell 7.4 or newer.
Syntax
Get-OfficePrinter [-PaperSources <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Discover queues and trays.
Get-OfficePrinter
Get-OfficePrinter -PaperSources 'Office printer'Parameters
- -PaperSources String
- Named printer whose paper sources should be listed.
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.