LISTPRINTERS — List available printers.

Syntax:
LISTPRINTERS /I /L /N /V name…

/Ilist local IP printers only
/Llist locally-controlled printers
/Nlist network printers
/Vverbose
name…may contain wildcards

If none of /I /L or /N is specified, both local and network printers will be listed.

You may specify one or more name parameters containing wildcards (inclusion masks), e.g. *LASER* to list all ports whose names contain the string “Laser”. Any printer whose name matches any of the inclusion masks will be included in the list. You can also specify wildcarded names to exclude; precede these with an exclamation point, e.g. !*DESK* to exclude all printers whose names contain “Desk”. Exclusion masks override inclusion masks. Any printer whose name matches any exclusion mask will not be shown, even if it matches one or more inclusion masks.

If /V is specified, the list of printers will also include the port name, server name, or IP address for each printer. This field will be truncated to 25 characters.

If you do not specify any name parameters, LISTPRINTERS will list all printers available on the local machine.