Thats one of the many things i hate about windows 2000, i use a logon script
(i use a kix script) to install the printer however this is a VB script file
i put togeter for a client. just change printserver and print share, and the
, true will make it the default printer and , false will make it non default
the default parameter is not optional. Hope it helps.
BTW: If its a 2k+ server and a 2k+ pro workstation the workstation will
inherit the server's printer settings (or it does for my HP LJ 4050), im,
not sure if this script will work on anything less than a 2k machine, i
havet tried it.
Oh and the unc path must be in " " as it takes a string as input, and the
default is boolean so its either true or false (not "true" or "false")
Dim WshNetwork
Set WshNetwork = CreateObject("WScript.Network") 'Create Windows Scripting
Host Network object
InstallPrinter "\\printserver\printshare", true 'Install the printer
printshare from the computer printserver and set to default
InstallPrinter "\\printserver\printshare2", false 'Install the printer
printshare2 from the computer printserver and do not make default
Set WshNetwork = nothing
Sub InstallPrinter(sPrinter, bDefault)
WshNetwork.AddWindowsPrinterConnection sPrinter 'Adds Printer
If bDefault = true then 'Is this to be the default printer
WshNetwork.SetDefaultPrinter sPrinter 'set as default
End If
End Sub
Tim