Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to map an IP printer/ IP Port

Status
Not open for further replies.

dojuama

IS-IT--Management
Apr 21, 2003
3
0
0
US
Hey all.

I know how use a script to map to an IP printer that has an existing IP port,, but if there is no Port on the user system it does not work. How do you use a script to map a port. The printer script is below.

rundll32 printui.dll,PrintUIEntry /if /b "Anyname" /f c:\drv\prt\8150\ps\hp8150ps.inf /r "IP_127.0.0.1" /m "HP LaserJet 8150 PS"

 
1. "IP_127.0.0.1" is your loopback address. You need a valid remote IP address. You cannot use it to "create" a local port. The construct you are using is to connect to a remote printer.

If Standard TCP/IP Ports are not created, the following error dialog box may be experienced:

Printer User Interface
Printer rundll command failed.

2. The "/m" needs to be "/M"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top