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...
Thanks in advance...
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.
ASKER
do you have an example of a batch file I could use, maybe paste something into here?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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
But how do you add the TCP printer port with the batch file? I can't figure out how to do this!
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") .SpawnInst ance_
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
Set objWMIService = GetObject("winmgmts:")
Set objNewPort = objWMIService.Get _
("Win32_TCPIPPrinterPort")
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