Can't add network printer automatically


Hello Experts.

I have this HP LaserJet 4000 PCL at work. We have as a network printer, so it's not local to any computer.
The problem is that (say on Windows 2000 for now) when trying that printer, I let Windows searches the network for printer, and it finds it. When I try to choose that printer, it says it cannot connect to it. I can't add it as a network printer.

The workaround we have for this is to add a local printer. When asked for a port, I create a new TCP/IP port and set up the IP to the printer. And that works great.

But I want to avoid this workaround, so what do you guys think is the problem?
When I connect to the printer's web interface, I see it manually set up on a static IP (which I use to create the TCP/IP port).

Thanks.
LVL 1
DeuceEEAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JoeCommented:
You can automate this with a VBS script but this script will only work on a Windows XP machine I have a script here that I used and it worked out fine this script should get you started just copy and paste this into a txt then save it as .vbs

Set objSWbemServices = GetObject("winmgmts:")
Set objNewPort = objSWbemServices.Get _
("Win32_TCPIPPrinterPort").SpawnInstance_
objNewPort.Name = "IP_111.111.111.10"
objNewPort.Protocol = 1
objNewPort.HostAddress = "111.111.111.10"
objNewPort.PortNumber = "9100"
objNewPort.SNMPEnabled = False
objNewPort.Put_


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objPrinter = objWMIService.Get("Win32_Printer").SpawnInstance_
objPrinter.DriverName = "Kyocera Mita KM-2030 KX"
objPrinter.PortName = "IP_111.111.111.10"
objPrinter.DeviceID = "Kyocera Mita KM-2030 KX"
objPrinter.Location = ""
objPrinter.Network = True
objPrinter.Shared = False
objPrinter.Put_


Just change all of this information to your ip address and driver name hope this helps

Joe
0
americanaxisCommented:
The easy way to solve this problem is to setup the printer on one machine. For example on your server. Then share the device and the rest of the network will see it through your server without any trouble.

If you do not have a server or a machine that is on all the time then I would stick to the workaround.

Good Luck,
Ron
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rindiCommented:
What you describe isn't a workaround, but the correct way to setup a networked printer that isn't shared via another PC, like americanaxis explains.

If you were using a windows 2000 or above server with Active directory installed, it is a good idea to share the printers via the server and active directory, as this way when you connect a printer to your PC you'll also automaticaly get the correct drivers for that printer pushed to your PC, provided you installed those client drivers on the server.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

mrwaqarCommented:
On the server where you have added the printer and shared it, you need to add additional drivers of the printer for different OS. For example if you are running windows 2000 on the server and trying to add on Win NT Ws you need to add WIN NT driver too on the win2k server. you can do that by going to printer properties select sharing tab and click additional drivers button. It should work after you do that.
0
DeuceEEAuthor Commented:
mrwaqar,
So, why doesn't it at least install it with standard drivers? If it can't find the driver, instead of saying "can't connect", it should at least install it with some sort of a generic driver. No?
0
james-stuartCommented:
If you can search for a network printer and it is found that leaads me tobelieve that it is on a print server. I would say that the reason you cannot set the printer up as a network printer on a workstation is because noone has the correct permissions to use it.

Logon to the print server goto "printers and faxes" right click on the printer select "properties" click on the "security" tab make surer that the everyone group has print permissions.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.