Add network printer batch file?

RamataKahn
08-21-2003, 09:12 AM
Anyone remember how to make one of these? We use active directory in our enviroment, and I want a patch file that I can use with Win XP to put in the all users startup folder, that way no matter who log on they have access to the printer.

Xaphan
08-21-2003, 11:25 AM
'======================== =====
'VBScript to add printers
'Grouped by Type of printer
'======================== =====

Set WSHNetwork = WScript.CreateObject("WScript.Network")
WSHNetwork.AddWindowsPrin terConnection "\\Lisa\HP5", "HP Laserjet 4si"
WSHNetwork.AddWindowsPrin terConnection "\\Lisa\HP5", "HP Laserjet 4si"
WSHNetwork.AddWindowsPrin terConnection "\\Lisa\HP5", "HP Laserjet 4si"


obviously you don't need 3 lines to add 1 printer...I just grabbed the top lines from my add printer template script :)