1
votes

I can retrieve all printers(including network printers) using windows application and also able to monitor them. I am using Print Spooler API's for them. But, if I run same code in windows service, I am not able to retrieve the network printers. Because network/shared printer will only be visible if you log in as specific Windows account and service is always login as 'SYSTEM' account.

Can we monitor these network printers using service?

1

1 Answers

1
votes

Yes, you need to set the Windows Service's login as a user that has permission to manage the print queues on the server or workstations you're trying to monitor.

Select the "This Account" option on the "Log On" tab in the Services Control Panel and specify an account that has the necessary permissions.