Avatar of JamesMonaghan
JamesMonaghan
 asked on

Network Install Utility

Is there any way to have an exe file that a user can double click and it will automatically setup a networked printer on their machine. In the past I have setup JetDirect print servers and it creates a executable that is double clicked and the printer is setup instantly, i presume it must have a config file within it. All my printers are on the same print server and they are all HP LaserJets. I dont want to use a logon script for it i.e. net use lpt1 \\printserver\share etc..

Thanks in advance...
Printers and Scanners

Avatar of undefined
Last Comment
ace95

8/22/2022 - Mon
Member_2_49692

The only way I know of is through a batch file... unless the printer company provided an .exe file. Otherwise you would have to have an exe file for that printer created. Unless you created your own batch file.

JamesMonaghan

ASKER
do you have an example of a batch file I could use, maybe paste something into here?
ASKER CERTIFIED SOLUTION
Member_2_49692

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
parisma

You can also use a product found at Parissoftware.net.  It is web based and allows users to map their own printers via a signed OCX control from an IE browser
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
nicepants

But how do you add the TCP printer port with the batch file?  I can't figure out how to do this!
ace95

The below will create the port then you just add the printer with one of the above scripts.  Change to your ip addresses

Set objWMIService = GetObject("winmgmts:")
Set objNewPort = objWMIService.Get _
("Win32_TCPIPPrinterPort").SpawnInstance_
objNewPort.Name = "IP_192.168.40.20"
objNewPort.Protocol = 1
objNewPort.HostAddress = "192.168.40.20"
objNewPort.PortNumber = "9100"
objNewPort.SNMPEnabled = False
objNewPort.Put_


Thanks
ACE