Windows

Send A Text File to Mulitple Printers in PowerShell

If you ever need a way to send a text file to multiple printers for testing or whatever the purpose, here is one for you.

$printers = @('Printer-1', 'Printer-2', 'Printer-3', 'Printer-4', 'Printer-5')
ForEach ($printer in $printers){
    $printer = '\\printer-server\' + $printer
    Get-Content 'h:\test-printer.txt' | Out-Printer $printer
}

The nice thing about this is, that you don’t need any of these printers to be installed to make it work. You can even schedule it as a scheduled task if you like.

edge

Share
Published by
edge
Tags: PowerShell

Recent Posts

Disable Copilot on Windows 11 via Group Policy GPO

If using Copilot right from the Taskbar isn't your thing, you should disable it. Even…

4 weeks ago

Setting Default Fonts in Word, Excel, Outlook, and PowerPoint via Group Policy

In an environment where standardizing things does matter, setting default fonts in Microsoft Office apps…

2 months ago

Wake-On-LAN (WOL) with Windows and PowerShell

Wake-On-LAN is a networking standard that lets you wake up a computer from either a…

2 months ago

How To Remove Restrictions Set in A Password-Protected PDF File

First of all, this is not to bypass a PDF file that requires a password…

2 months ago

How To Move My Outlook Navigation Bar Back From Left Back To the Bottom

Microsoft has been lurking about the idea of placing the Outlook navigation bar to the…

1 year ago

Headset with Microphone Echoing My Own Voice on Windows, What To Do?

One colleague came up to me the other day asking me to take look at…

1 year ago