Share via


Network Printer Not Showing When Installing via Command Line

Question

Wednesday, August 3, 2016 2:34 PM

I am attempting to add a printer via the command line using a batch file as an admin (to eventually deploy via SCCM TS on Win10):

rundll32 printui.dll,PrintUIEntry /in /ga /n"\my network printer"

The command appears to run successfully but I am not able to find any trace of this printer in my printer list, print management, or in the registry (HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Control → Print → Printers)

When I attempt to run it a second time I get the error message "Unable to add the per machine printer connection.  Another printer or printer share with this name already exists.  Please use another name for the printer."  

Any ideas?  Thanks in advance!

All replies (4)

Sunday, August 7, 2016 4:46 PM ✅Answered

It turns out that the issue was I did not have the printer drivers installed


Thursday, August 4, 2016 2:05 PM

After more troubleshooting I've narrowed it down to this: using script with 2 different printers on 2 diff print servers, I've discovered that this script works for all domain users on windows 7. It works for all domain users on windows 10 when using one printer but not the other. 

So, it looks like the issue has to do with one particular queue on Windows 10 only but not sure why...doesn't make much sense. Any ideas?


Sunday, August 7, 2016 2:36 PM

Hi,

Please let me know the difference between these 2 printers and printer servers.

I would also confirm with you: Does you Windows 10 can access the printer driver store on the server for the one you are trying to install ?

Have you tried to add the printer via IP address instead of the UNC path?

Please find if there is any error in Event viewer \Applications states for installing printer, post back the details.

Please remember to mark the replies as an answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, August 9, 2016 5:29 PM

Hi,

Has your issue been resolved?

If the issue has been resolved by yourself, it would be much appreciated if you would share the troubleshoot experience here and mark the case. It would be much useful for the person who will come across the similar issue in the future.

If the issue was resolved by the replies in this thread, please remember to click “Mark as Answer” on the post that helps you.

Please remember to mark the replies as an answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].