Here is a little function to request a test page from each of the printers you are connected to.
# Get Printer Objects for this computer from WMI
$vPrinters = Get-WmiObject -Class Win32_printer
# Print a test page for each printer
foreach ($vPrinter in $vPrinters)
{ $vPrinter.PrintTestPage() }
Advertisement