Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapping a jetdirect hp printer

Status
Not open for further replies.

nervous2

IS-IT--Management
Feb 24, 2003
125
CA
DOes anyone here have a VBS login script for mapping a HP jetdriect printer? I was using a mapping script for local printers.

' VBScript.
' Guy Thomas January 2004

Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\PrintandFax\HP LaserJet 2200 Series PCL 6"

but I have removed that computer and not I have a network printer, but I need an automatic mapping script so I don't have to manually hook up this to each machine.

Thanks

 
thanks but I have tried that many many times.

This script mapped my printer that was connected to a PC which I would like to take off of the network.

' VBScript.
' Guy Thomas January 2004

Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\PrintandFax\HP LaserJet 2200 Series PCL 6"

Therefore I used this same script, but I changed the path to ..

' VBScript.
' Guy Thomas January 2004

Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\192.168.1.5\HP LaserJet 2200 Series PCL 6"

and not matter what I put after the Ip address I get a script error telling me the printer name is invalid, I was told that I couldn't use this script because I had to port map too. Thats why I was wondering if anyone had successfully done this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top