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

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.


"xavier@isia" <xavier@isia@discussions.microsoft.com> wrote in message
news:5863B02D-7AD0-49E1-A67D-28855A540AC6@xxxxxxxxxxxxxxxx
> Env = win2000 SP3
> Here is my scenario :
> Our app start as a service : It extract data from a db and print to
> printers.
> The service is started with a particular user let say "user1".
> Then we reboot the server :
> If the net printers were installed before after a rebbot they are not
> visible.
> So we try to connect the net printer in our with "rundll32
> printui.dll,PrintUIEntry /q /in /n "\\Server\NamePrinter".
> It recreate the printer but for a default user .
> This could give two same printer for the same user : and a problem for
> us.
>
>
> Here is my two questions :
> - How can I connect a printer for a specified user when a console session
> isn't logged.
> - Or how can I define the printer for all the user


.



Relevant Pages

  • Re: Cannot add new printer
    ... See my response in the thread "LPT1 Port Prints to Network Printer". ... Bruce Sanderson MVP ... It's perfectly useless to know the right answer to the wrong question. ...
    (microsoft.public.win2000.printing)
  • Re: Installing network printer
    ... Bruce Sanderson MVP ... It is perfectly useless to know the right answer to the wrong question. ... "Alan Smul" wrote in message ... Can't get a WinXP pc to install an HP network printer. ...
    (microsoft.public.win2000.printing)