All Forums >> [Scripting] >> WSH & Client Side VBScript >> How to load a printer driver (at least in xp) Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
You know, there is a lot of misunderstanding on how to load printer drivers via VBS. This is mostly due to the documentation from Microsoft's example being completely wrong.
I thought I would post what I managed to get working. I am told it doesn't work in Vista, but I don't have Vista so I don't know why, if someone can tell me I would like to know.
And here is my actual script. Yeah, I didn't comment it, sorry.
Posts: 126
Score: 2
Joined: 7/13/2006
From: Australia
Status: offline
I can add printers in my XP desktop environment with the following code launched from a batch file. We have Windows print servers and the printers are published in AD but that is probably not a prerequisite. Maybe this would work with Vista?
That is not so much loading a driver as pointing to a mapping and automatically installing the associated driver. A valid method, but not the best way in all situations.