Re: Application started from a "win services" doesn't see network



You might try adding the "network printer" as a "Local Printer" per
instructions in http://members.shaw.ca/bsanders/NetPrinterNoPP.htm. I
suspect that at least part of the issue is that "Network Printers" are a per
user thing configured in the user's profile. When something runs as a
Service, there is no "user profile".

However, a Service should be able to use an existing Local Printer.

I suspect having a Service adding a printer each time it runs would be not a
good thing to do.

--
Bruce Sanderson MVP Printing
http://members.shaw.ca/bsanders

It is perfectly useless to know the right answer to the wrong question.



"xavier" <xavier@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EA223E07-F51C-493F-8523-DA45A80A7A06@xxxxxxxxxxxxxxxx
> thank you for your concern :
> I've read the link you sent and notice the /ga in the command, it's
> worse.
>
> here another try to explain my prob.
> 1 step : on the srv1 the Admin install a printer print1 ( on
> \\pcuser\print1 )
> 2 step : execution on srv1 the background process enumerate printers ->
> no
> net printer , I try to connect printui.dll,PrintUIEntry /in /n
> \\pcuser\print1 ok it print.
> 3 step : next print job find 2 printers "\\pcuser\print1" > ????
> 4 step : the admin log on sev1 all he can do is delete the printers
> and
> goto step1 ;(
>
> printui.dll,PrintUIEntry /ga /n \\pcuser\print1 seem to fail I don't
> know
> why ?
> I've also tried it in interactive mode : the spooler fail need to be
> restarted
>
>
>
>
>
>
> "Bruce Sanderson" wrote:
>
>> See http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm for how to add
>> a
>> network printer for all users on a computer.
>>
>>
>>
>> --
>> Bruce Sanderson MVP
>>
>> It's perfectly useless to know the right answer to the wrong question.
>>


.



Relevant Pages

  • Enumerate and then remove all networked printers
    ... Does this script look right to enumerate which network printers are attached to a user's profile and then delete them? ...
    (microsoft.public.scripting.vbscript)
  • Set a network Printer in GP
    ... Currently user have to set their own network printers to use, ... stored in the profile. ... Is there an entry in Group Policy to set a single Network printer for domain ...
    (microsoft.public.win2000.security)
  • Roaming profile issue...
    ... I have a roaming profile issue that I would like some clarification on... ... configure any printers on his profile as the various network printers he ...
    (microsoft.public.windows.server.sbs)
  • Roaming profile issue...
    ... I have a roaming profile issue that I would like some clarification on... ... configure any printers on his profile as the various network printers he ...
    (microsoft.public.backoffice.smallbiz2000)