I have the following windows server 2019 environment setup:
-windows print server
-IIS 10 with the https printer page
-Windows AD
I can setup network printer on client machine with the following Powershell script given the driver is installed on the client machine:
Add-Printer -Name "My Server Printer" -PortName "https://domain-name/printers/printername/.printer" -DriverName "Drivername"
But every now and then, the client machine stops accessing the printer properly and just gives out straight 'access denied' message. I'll have to remove the printer, remove the port setting, re-add the printer back to make it working again before it denies me yet again.
Other times it will ask me for network credentials even I'm already logged in as one of the domain users who has permission to print/change the printer.
How do I make my settings permanent?
Thanks for any help.
