Network printers not showing in PrinterSettings.InstalledPrinters

65 Views Asked by At

I have a service running on a windows server 2019 VM that during setup will get a list of printers available using the below

 List<string> printers = PrinterSettings.InstalledPrinters.Cast<string>()
                                        .Select(printname => (string)printname)
                                        .ToList();

When run by the service this will get a list built in printers such as "Microsoft Print To PDF" etc.

But for some reason does not show network printers.

I have tried running the above code snippet in its own .exe and it is able to get the list of network printers.

0

There are 0 best solutions below