connecting to network printer with logon script

D

doobrie

win2k domain, win2k desktops

logon script creates mapped drives and would also like logon script to
connect users to network printers. the printer queue's are held on the
win2k server

is there a simple method such as ..... connect printer \\server\printer

.... that i could use in the logon script so everyone gets access to all
shared network printers or is it more involved?
 
D

Dajo Rybski

Call the script with wscript scriptname.

Dajo


doobrie said:
thanks for that, although further looking has uncovered adding printers
via vbs logon script as follows:-

Set wshNetwork = wScript.CreateObject("wScript.Network")
wshNetwork.AddWindowsPrinterConnection "\\server\printer"

it certainly adds the printer wen double clicking the printers.vbs file
but how do i call the vbs file from the logon script ... just putting in
the name of it gives an error

it also doesnt seem to error out if the printer is already installed and
just continues on so doesnt look like i need to set it to be removed
first and then added again??
 
D

doobrie

"Dajo said:
Call the script with wscript scriptname.

Dajo

thanks ... if i call it like that - wscript scriptname.vbs i get an
error from the logon script as it seems to be executing the script from
c:\

if i call it with wscript \\server\netlogon\scriptname.vbs then all is
ok

is this right or is something amiss with it not working without the path
to the server??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top