Changes

Jump to: navigation, search

Printer configuration

967 bytes added, 14:49, 27 June 2008
Adding TCP/IP printer ports
WPKG can be used for configuring printersand printer ports, too. = Adding TCP/IP printer ports = The following VBS script "addTcpipPort.vbs" adds a TCP/IP printer port, which can be then used by a printer installation: <source lang="dos">Set args = WScript.ArgumentsprinterPortName = args.Item(0)tcpipAddress = args.Item(1)tcpipPortNumber = args.Item(2)Set objWMIService = GetObject("winmgmts:")Set objNewPort = objWMIService.Get _("Win32_TCPIPPrinterPort").SpawnInstance_objNewPort.Name = printerPortNameobjNewPort.Protocol = 1objNewPort.HostAddress = tcpipAddressobjNewPort.PortNumber = tcpipPortNumberobjNewPort.SNMPEnabled = FalseobjNewPort.Put_</source> Syntax:<source lang="dos">cscript addTcpipPort.vbs <new port name> <printer address> <printer port></source> Usage example, add a new printer port named "printerport1" with IP address "192.168.1.2" and port number "9100":<source lang="dos">cscript addTcpipPort.vbs printerport1 192.168.1.2 9100</source>   = Adding Printers =
When a new printer is configured on a server, it still has to be "installed" on a workstation.
152
edits

Navigation menu