NetPrinters

Copyright © 2008 Daniel Collins
Website: http://www.solemnwarning.net/netprinters/

NetPrinters is a utility for managing networked printer connections on Windows workstations running Windows 2000 or newer. It can be passed printers via the command line, or in a NetPrinters script which allows setting up printers based on filters such as username and hostname.


Command line options


Script format

NetPrinters scripts are made from "blocks" of code, blocks of code contain control and filter directives, the control directives of a block are executed in order until a filter statement that evaluates false is encountered, then the rest of the block is skipped.

Blocks of code are seperated by one or more blank lines, lines beginning with a hash (#) symbol are ignored as comments, but they will not act as block seperators.


Control directives


Filter directives