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!

Add Printer in Win98-Nothing works. AHHH

Status
Not open for further replies.

vb8304

IS-IT--Management
Mar 22, 2001
55
US
I am using the following part of our logon script (VBS) to try and map some printers to some Win 98 machines. I keep getting an error stating that the printer driver is unknown. It is probably something very simple yet I seem to be overlooking it. Any help would be great.

Thanks.

' On Windows 95/98 Machines:
strPrinterPath = "\\nhsprint\isdp-hp8000N"
strDriverName = "HP LaserJet 8000 Series PCL 5e"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection strPrinterPath, strDriverName
 
This is the good ole Windows OS at work. The Windows driver database only installs print drivers that are actively necessary, it removes them when no active printers are using them.

And as the error indicates and the documentation states, the printer driver must already be installed on Win9x for this method to work.

On your 98 machine, configure another printer to use the driver HP LaserJet 8000 Series PCL 5e. After doing so, run this script again and you should experience success.

You wont have this problem with NT/2K machines. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top