G
Guest
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
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