Powershell – Printer Server – Spooling Test Page to Printer

How to send a Test Page to a printer on your print server ?

It can be good sometime to test if your printers are always working on your server, or when you just install or migrate a new print server
An easy way for print a Test Page on all your printer.

step 1 : get all your printer with Get-Printer
step 2 : send test page with printui.dll,PrintUIEntry

ps : if you can, remove the network on the server, in order not to waste paper 🙂

the complete code :

$printers = Get-Printer | select Name
foreach ($printer in $printers) {
Write-Host « Spooling Test Page to Printer:  » $printer.name
rundll32 printui.dll,PrintUIEntry /k /n $printer.name

1 commentaire sur “Powershell – Printer Server – Spooling Test Page to Printer”

  1. Ping : Powershell – printer migration installation script – People Are Geek

Laisser un commentaire