Re: Share a printer.. by jcochran
jcochran
Wed Sep 17 14:00:12 CDT 2003
On Wed, 17 Sep 2003 19:37:32 +0200, "JeHo" <jeho@bredband.net> wrote:
>How can I share a printer via script?
Not exactly sure what you're asking, but if you have the printer
configured on the server, you can map it at the client via WSH. Try
looking at the AddWindowsPrinterConnection method for the Network
object, or AddNetworkPrinterConnection perhaps.
Something like:
----------------------------
Set wshNetwork = WScript.CreateObject("Wscript.Network")
wshNetwork.AddWindowsPrinterConnection "\\server\printername"
----------------------------
Jeff