bippyfeb2098
(Fresh Scripter)
2006-02-17 03:54 PM
Printer Creation Script woes

Many of my users have the "Microsoft Document Imaging" printer set to their default when the log in. Though we have it no where in the script and we set all print connectoins to delete upon log in, it still shows up???

Radimus
(KiX Supporter)
2006-02-17 03:56 PM
Re: Printer Creation Script woes

"Microsoft Document Imaging" is a local printer, so if there are no network printers, it defaults to a local one

bippyfeb2098
(Fresh Scripter)
2006-02-17 05:41 PM
Re: Printer Creation Script woes

Well that is what is so concerning, because the other network printers are created just fine, but th default does not change.

Les
(KiX Master)
2006-02-17 06:04 PM
Re: Printer Creation Script woes

It is a matter of which came first. If originally there were no other printers, thn the default would be well.... default. Adding other printers after the fact won't automagically change the default, you have to do that.

bippyfeb2098
(Fresh Scripter)
2006-02-17 08:32 PM
Re: Printer Creation Script woes

But the script is set to set a default printer.

Les
(KiX Master)
2006-02-17 08:33 PM
Re: Printer Creation Script woes

What script? How are we to comment on a script we know nothing about?

Radimus
(KiX Supporter)
2006-02-17 08:37 PM
Re: Printer Creation Script woes

Shawn does have the Amazing Kreskin telepathy helmet

bippyfeb2098
(Fresh Scripter)
2006-02-17 08:39 PM
Re: Printer Creation Script woes

if ingroup("printGroup18")
If ADDPRINTERCONNECTION ("\\print01\18_East") = 0
? "Added printer connection...."
endif
If ADDPRINTERCONNECTION ("\\print01\18E_Copier") = 0
? "Added printer connection...."
endif
If SetDefaultPrinter ("\\print01\18_East") = 0
? "Set default printer to 18_East...."
endif
endif


Richie19Rich77
(Seasoned Scripter)
2006-02-17 08:42 PM
Re: Printer Creation Script woes

You have the syntax wrong, AddPrinterConnection and SetDefaultPrinter uses different syntax.

SetDefaultPrinter uses the printer name and not the printer path name, see below.

Quote:


SetDefaultPrinter ("<printer name>")

printer name = the fully qualified name (include the double backslashes and the server name) for the printer to be set as default





Quote:


AddPrinterConnection ("<printerpath>")

printerpath = UNC path to printer name ("\\server\printer name") or share name ("\\server\printer share name")




Thanks


Radimus
(KiX Supporter)
2006-02-17 08:45 PM
Re: Printer Creation Script woes

if ingroup("printGroup18")

If ADDPRINTERCONNECTION("\\print01\18E_Copier") = 0
? "Added printer connection...."
$nul = SetDefaultPrinter("\\print01\18E_Copier")
endif

If ADDPRINTERCONNECTION("\\print01\18_East") = 0
? "Added printer connection...."
$nul = SetDefaultPrinter("\\print01\18_East")
endif


endif


bippyfeb2098
(Fresh Scripter)
2006-02-17 08:47 PM
Re: Printer Creation Script woes

I am sure I have something wrong.