I've added a few printers to a gateway VM through various methods (directly through TCP/IP, network printer wizard, etc). When I call system.print.getPrinterNames() only the Microsoft XPS Document Writer and Microsoft Print to PDF printers show up. However, if I call system.print.getDefaultPrinterName() then I can get the default printer.
I can change the default printer in the VM and it changes for getDefaultPrinterName but the added printers never show up in getPrinterNames. I've tried restarting the print spooler service with no luck.
If it runs on the gateway then it's running as whatever service user Ignition is running as, which I'm guessing has something or everything to do with your problem.
I logged into the VM as the service account and added the printers from there. I am also setting the default printer from the service account. Why would getDefaultName show the default printer as I'm changing it and the full list of printers not show up in getPrinterNames?