I then added the IP address and it hangs. Does the PC and the TCP/IP
printer
have to be in the same subnet?
That doesn't make sense because the wizzard will do it but the command
line
will not.
c:\ cscript prnport.vbs -a -r IP_PRINTER -h 172.16.41.54 <-This command
hangs the process
I am 172.17.96.108
:
requires a hostname parameter (or IP address)
-h
prnport -a -r IP_1.2.3.4 -h 1.2.3.4
the r parameter is only the port name and that does not have to be the
same
as the -h parameter
If the network card of the printer is in tcpmon.ini then the wmi
process
will consume your CPU cycles (on XP) due to a bug in cimwin32.dll
Pass in the -o parameter to work around this
Arguments:
-a - add a port
-d - delete the specified port
-g - get configuration for a TCP port
-h - IP address of the device
-i - SNMP index, if SNMP is enabled
-l - list all TCP ports
-m - SNMP type. [e] enable, [d] disable
-n - port number, applies to TCP RAW ports
-o - port type, raw or lpr
-q - queue name, applies to TCP LPR ports
-r - port name
-s - server name
-t - set configuration for a TCP port
-u - user name
-w - password
-y - community name, if SNMP is enabled
-2 - double spool, applies to TCP LPR ports. [e] enable, [d]
disable
-? - display command usage
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto
This posting is provided "AS IS" with no warranties, and confers no
rights.
I am trying to install TCP/IP printers via command line on my Windows
XP
pro
using the following command I get this:
C:\WINDOWS\system32>cscript prnport.vbs -a -r IP_172.16.41.54
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Unable to create/update port IP_172.16.41.54 Error 0x80041008
Invalid
parameter
Anyone know what's going wrong and how I can fix it?