Link to home
Start Free TrialLog in
Avatar of YellowbusTeam
YellowbusTeam

asked on

Error message VBS and printer driver host 32bit application has stopped working

Hi all,

We are running a server2008 standard and this error is only apearing on win7 machinesit would be great if anyone can help with this error please? User generated image
Avatar of David_Ingledew
David_Ingledew
Flag of United Kingdom of Great Britain and Northern Ireland image

Can you post the vbs script pls?
Avatar of YellowbusTeam
YellowbusTeam

ASKER

'==================================================================
'
'file type :VB Script
'file name :Add printers.vbs
'auther  :Yellowbus
'description :adds network printers to an XP client'
'===================================================================
 
Option Explicit
Dim objNetwork
Dim strUNCPrinter
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\tsifsvr1\PlotWave300"
objNetwork.AddWindowsPrinterConnection "\\tsifsvr1\FollowYou Printing"
 
WScript.Quit

there you go thanks in advance
Try with objNet.AddWindowsPrinterConnection
Ok i will try this and let you know how it goes
We now get the following Error message
Line: 13
Char: 1
Error: Variable is undefined 'objNet'
Code: 800A01F4
Source: Microsoft VBScript runtime error

Any help on this would be greatly appreciated.
Righto. rather than recreate the wheel, look here:
ASKER CERTIFIED SOLUTION
Avatar of David_Ingledew
David_Ingledew
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial