Skip to content

Bring back Out-Printer #10660

@jhoneill

Description

@jhoneill

Summary of the new feature/enhancement

'As a user I want to be able to send output of a command to a printer.'
For example Get-Process | out-printer "OneNote"
would save the current processes to a new page in OneNote
or Get-Package | lp
Would send a list packages to the default printer

Proposed technical implementation details

Windows PowerShell has an Out-Printer command with an alias of lp .
but this was dropped in PowerShell core V6
I have posted a version for V6 and later at https://www.powershellgallery.com/packages/6print with a repo at https://github.com/jhoneill/6Print

This provides some additional controls over the output.
I'd propose this as a first draft / worked example of how it could be done.

Metadata

Metadata

Assignees

Labels

Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions