Powershell Script to Load Test a Printer
I was working on a method to load test a printer using a script. Here I explain how you can do that using Powershell.
First make a prn file using Print to File, or change the printer port to FILE (The FILE port is listed by default on the Ports tab of the printer’s Properties dialog box. When you send a print job to a printer that uses this port, the spooler prompts you for the name of a file where the document needs to be stored). Then save the prn file and then you can execute this script:
$i = 1
Do
{
get-content C:\temp.prn | Out-Printer -name \PRINTSERVER\PRINTER
} Until ($i -eq 5)
Please Note: The Printer needs to shared otherwise this script won’t work. To stop this script you need to press Ctrl-C