Cool Solutions

Configuring TCP/IP Printers in ZENworks 10 Configuration Management


January 9, 2009 6:12 pm






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


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, 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.
0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Categories: Uncategorized


Disclaimer: This content is not supported by Micro Focus. 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 it thoroughly before using it in a production environment.


  1. By:martinezm19

    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.

  2. By:jchipman

    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
    Printer Name

  3. By:rdreed

    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.

    • By:psilpa

      ECHO Windows Registry Editor Version 5.00 > tcpipports.reg

      REM reg file header and parent key


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

      ) >> tcpipports.reg

      REM LOOP IP addresses and create keys

      ECHO ;port %1
      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
      ) >> 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