Article

psilpa's picture
article
Reads:

9184

Score:
4
4
1
 
Comments:

4

Configuring TCP/IP Printers in ZENworks 10 Configuration Management

Author Info

9 January 2009 - 6:12pm
Submitted by: psilpa

(View Disclaimer)

Problem:

Installing a TCP/IP printer by using the printer policy of ZENworks Configuration Management.

Solution:

This solution is tested on Windows XP, Windows 2003 server and Windows Vista device.

  1. Download createPrinter.bat file to a temporary location on the device.
  2. In ZENworks Control Center, create a bundle.
  3. Add the Install Directory action to upload the printer driver such as hp4100p6.inf to a directory on the managed device.
  4. Add the Install Files action to upload the createPrinter.bat you downloaded in Step 1 to the managed device.
  5. Add the Launch Windows Executable action to execute the batch file on the managed device.

    In the Command Line Parameters option, specify the following arguments:

    • IP of the printer
    • Name of the printer object on the managed device.
    • Model of the printer
    • The complete path of the driver that you uploaded in Step 3

    The model of the printer and driver path arguments should be enclosed in double quotes.

    For example, 10.0.0.0 test "HP LaserJet 4100 PCL 6" "c:\lj4100\hp4100p6.inf"

  6. Assign the bundle to a user or device based on the requirement.
  7. Set the distribution or launch schedules based on the requirement.
  8. Launch the bundle on the managed device.
AttachmentSize
createPrinter.zip656 bytes

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

martinezm19's picture

Error

Submitted by martinezm19 on 18 February 2009 - 11:31am.

I have tried installing a few tcp/ip printers using this method, but have been unsuccessful. I keep getting the error message "Operation could not be completed. Windows cannot locate a suitable printer driver. Contact your administrator for help locating and installing a suitable driver." I have set the path correctly to the driver and the driver is there. If I manually install the printer and point to that driver it installs fine. I could use some help trying to figure out how to get this working. Thanks.

jchipman's picture

Love It

Submitted by jchipman on 31 May 2009 - 10:17am.

I've used this method to let users install printers themselves when they need to. Works flawlessly so far. We've modified the process to fit our needs. I also templated each of the printer models so creating a new printer bundle takes only a few minutes to accomplish. So far I've found it better than using IPrint. Printer drivers rarely change in our environment so this solutions works very well.

Further I've used ZCM and assigned all printers to the workstations so all workstations can see the printers. Giving each bundle a requirement of the IP address segment I can control who gets to see the printer. If the laptop or desktop moves to a new segment they get to see and install the printer if they need it.

Also we made sure each of the printers is in its own folder so when the users look for a printer, the printer is sorted logically based on Site, Building, and floor.

Sort of like this:
Network Printers & Copiers
Building
Floor
Printer Name

rdreed's picture

can't get download

Submitted by rdreed on 22 February 2011 - 1:46pm.

All docs say download createPrinter.bat, however the only download available is a zip file of 656 bytes. Downloaded that and extracted, looks like no bat file i have ever seen, just garbage like a binary. Please help, this looks like exactly what i need, sure i am just missing something. When the script runs on the target machine it asks which program to open createprinter with as it does not recognize it as a batch file.

psilpa's picture

content of bat file.. incase download has a problem

Submitted by psilpa on 6 June 2011 - 5:35am.

ECHO Windows Registry Editor Version 5.00 > tcpipports.reg

REM reg file header and parent key

(

ECHO.
ECHO [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Monitors\Standard TCP/IP Port\Ports]
ECHO "StatusUpdateInterval"=dword:0000000a
ECHO "StatusUpdateEnabled"=dword:00000001
ECHO.
ECHO.

) >> tcpipports.reg

REM LOOP IP addresses and create keys

(
ECHO ;port %1
ECHO.
ECHO [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Monitors\Standard TCP/IP Port\Ports\IP_%1]
ECHO "Protocol"=dword:00000001
ECHO "Version"=dword:00000001
ECHO "HostName"=""
ECHO "IPAddress"="%1"
ECHO "HWAddress"=""
ECHO "PortNumber"=dword:0000238c
ECHO "SNMP Community"="public"
ECHO "SNMP Enabled"=dword:00000000
ECHO "SNMP Index"=dword:00000001
ECHO.
ECHO.
) >> tcpipports.reg

REM silently import the keys into the registry
REGEDIT /S tcpipports.reg

REM delete the reg file (in this case, consider using %temp%\tcpipports.reg )
REM DEL tcpipports.reg
net stop "Print Spooler"
net start "Print Spooler"
rundll32 printui.dll,PrintUIEntry /if /b %2 /f %4 /r "IP_%1" /m %3

© 2013 Novell