Setting up network printer in Windows 7

Page 1 of 3 123 LastLast

  1. Posts : 20
    Windows 7
       #1

    Setting up network printer in Windows 7


    I'm trying to setup a network printer in Windows 7 from command line. I've tried using the rundll32 printui.dll command. It works in Windows XP. But pops up with an error "The specified port is unknown" in Windows 7.
      My Computer


  2. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #2

    Go to Control Panel\Hardware and Sound\Devices and Printers > Add a Printer > Add a network, wireless or Bluetooth printer
      My Computer


  3. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #3

    rundll32 printui.dll,PrintUIEntry is the correct command

    or you can use the command line util:

    PRINTUI
      My Computer


  4. Dom
    Posts : 2,295
    Windows Seven Ultimate
       #4

    To install my wireless printer I did what whs suggested. But first you need to install the stuff on the cd that came with your printer. Follow on-screen instructions once you've loaded up the cd.
      My Computer


  5. Posts : 375
    Windows 7 Ultimate N 64-bit
       #5

    why dont u add a network printer like u usually do in windows? just add a local printer on the port tcp/ip and add in your IP.
      My Computer


  6. Posts : 20
    Windows 7
    Thread Starter
       #6

    richyrichuk said:
    why dont u add a network printer like u usually do in windows? just add a local printer on the port tcp/ip and add in your IP.
    Because we set up alot of printers everyday. We usually have to setup 2 or more printers for each PC & say there are 20 + PCs at one store. Then we have to go thru that process 40+ times. I created a little java web applet that allows you to just type in the printer name & the IP address & hit install. This will save us alot of time. This applet works fine in Windows XP. But, not in Windows 7.

    printersetup.tk

    After doing some research I think you have to add the port to the registry in Windows 7 before you can install a TCP I/P printer from command line. I tried this command but still comes up as "Unknown Port"

    Code:
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v HostName /t REG_SZ /d HPprinter
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v HWAddress /t REG_SZ
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v IPAddress /t REG_SZ /d 172.20.100.150
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v PortNumber /t REG_DWORD /d 9100
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v Protocol /t REG_DWORD /d 1
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v Version /t REG_DWORD /d 1
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v "SNMP Community" /t REG_SZ /d public
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v "SNMP Enabled" /t REG_DWORD /d 1
    REG ADD"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports\HPprinter" /v "SNMP Index" /t REG_DWORD /d 1
    rundll32 printui.dll,PrintUIEntry /if /b "HPprinter" /f "c:\WINDOWS\inf\ntprint.inf" /r "HPprinter" /m "HP LaserJet 4100 Series PCL6"
      My Computer


  7. Posts : 20
    Windows 7
    Thread Starter
       #7

    Really no one has any idea how to setup a tcp / ip printer in windows 7 from command line?
      My Computer


  8. Posts : 6,243
    win 7 ultimate32bit, Win8.1pro wmc 32bit
       #8

    IYIaster said:
    Really no one has any idea how to setup a tcp / ip printer in windows 7 from command line?
    found this, there is a little bit of info for win7,it may or maynot be of use Command Line Printer Control
      My Computer


  9. Posts : 20
    Windows 7
    Thread Starter
       #9

    pebbly said:
    IYIaster said:
    Really no one has any idea how to setup a tcp / ip printer in windows 7 from command line?
    found this, there is a little bit of info for win7,it may or maynot be of use Command Line Printer Control
    Yes I've been to that page. The scripts on there all tell me the same thing. Thanks for the help though. I know this can be done I just wish I knew how.
      My Computer


  10. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #10

    pebbly said:
    IYIaster said:
    Really no one has any idea how to setup a tcp / ip printer in windows 7 from command line?
    found this, there is a little bit of info for win7,it may or maynot be of use Command Line Printer Control
    Yep that page is confusing, but it does work, however it is a lot more work to use those commands then it is to just add the printer through the GUI.
      My Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:24.
Find Us