question

ThomasC-5438 avatar image
0 Votes"
ThomasC-5438 asked JiaYou-MSFT edited

Unable to set printer

We are a hospital and when users are printing from our main medical application we have users printing to networked printers and very random when they goto print they will get a pop up that says Unable to set printer to <printerpath&name> winspool Ne04:
this is very random, we cannot reproduce it.
Any ideas? I cant find anything in log files. I also enabled print services logs to review.
111047-setpr.png


windows-server-print
setpr.png (11.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI

I haven't heard back from you yet, so I just wanted to follow up with you.

0 Votes 0 ·
yagmoth555 avatar image
0 Votes"
yagmoth555 answered

Hi

Please add more details to be able to get a better answer.

In exemole, Is it s published application and it’s mapping printer in the background ?

Do you got GPO set to put the printer by default ? I ask as if the printer isnt applied before a set default printer script run it could cause that error.

Does your application ´remember’ the last printer used but try to reprint on the full name of it ? (including the printqueue name) I ask as I seen that symptom in the past in a badly coded application. It was remembering the full name, it finished as PrinterX (Session X …), which was not ok. I ask as I seen Net04: in your error.

Thanks

Philippe

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ThomasC-5438 avatar image
0 Votes"
ThomasC-5438 answered

Our medical system software maps the printers through the system and then sends the jobs to that printer server.
All our printers outside of that system are mapped through group policy
I will pose the question you ask to the support engineers. (as they are just as clueless as I am on this). thank you

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JiaYou-MSFT avatar image
0 Votes"
JiaYou-MSFT answered JiaYou-MSFT edited

HI ThomasC-5438,

  1. When issue happen, we can go to below registry on printer mapped pc, in the right column, please check if the value is your unable set printer name.

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
111363-11.png

Printer issues- message comes up that says "unable to set up printer selected by Print Dialog"
https://answers.microsoft.com/en-us/windows/forum/all/printer-issues-message-comes-up-that-says-unable/20d186a3-a578-440c-8722-935c142dfa51?auth=1


2.When the problem happened, are there any event log in below location on RDsession host server?
event viewer\windows logs\
application
system
event viewer\windows logs\applications and services logs\microsoft\windows\printservice
event viewer\windows logs\applications and services logs\microsoft\windows\termininalservice-printers

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



11.png (95.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JiaYou-MSFT avatar image
0 Votes"
JiaYou-MSFT answered JiaYou-MSFT commented

HI ThomasC-5438,

Is there any progress on your question?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI ThomasC-5438,

I haven't heard back from you yet, so I just wanted to follow up with you.

0 Votes 0 ·
TheAlanMorris avatar image
0 Votes"
TheAlanMorris answered

@ThomasC-5438 In the PrintService / Operational logs on the client, you have to enable these since the spooler is not logging this channel by default, you should see event 306 when setprinter is called.

There is an issue with the event, which was never addressed, and there are no details regarding what change was made to the printer, but you can view the time of the event to see if this correlates to anything.

In general, setting the per user devmode back to null would be my guess. The devmode is the printer settings. On the server this will be printer properties / Advanced / Printing Defaults, this is known as the printer devmode. On the client system there is a user devmode, that's the Preferences settings. The user devmode will always beat the printer devmode so when users change the Preferences, say they like to print color all the time even though the Printing Default is set to grayscale, the user setting always wins.

Clearing the user setting on the client then allows for the server setting to be the primary setting.

Are you using some tool to add the connection on the client systems? This might also be attempting to change the printer settings to the default on the print server.

If this sounds like something your IT team have implemented, you can ask

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.