en-US/about_SpecPrinters.help.txt
TOPIC
about_SpecPrinters SHORT DESCRIPTION Printer management on the local device LONG DESCRIPTION This module contains all of the functions required for managing printers on the local device. EXAMPLES To retrieve the return codes from the functions within your scripts, you can utilise the following code: (Read the particular function's help for the return codes that are returned) $result = Add-SpecPrinter -printerName "Printer1" -printerPort "LPT1" -printDriverName "HP Universal Driver" Switch (result) { 500 { Write-Host "Printer added successfully" } 501 {"The printer already exists"} 502 {"Unable to add the printer due to an unknown error"} } KEYWORDS printer, printers SEE ALSO NA |